Scoop API

scoop:scoop.std:0.1.0

scoop.datetime

API

  • struct DatePeriod

    Calendar years, months, and days. Components are retained separately; applying a period combines years/months before days and may clamp an end-of-month date.

  • struct DateTimePeriod

    A calendar DatePeriod followed by a fixed elapsed Duration. Applying it to a local date-time applies the date component first.

  • enum DayOfWeek

    An ISO weekday, numbered Monday = 1 through Sunday = 7.

  • class LocalDate

    An immutable proleptic Gregorian date in years -999999999..999999999. Construction validates month/day combinations; it carries no time zone.

  • class LocalDateTime

    An immutable local date and time without a time zone. Conversion to an Instant requires an explicit UTC offset.

  • class LocalTime

    An immutable time of day with nanosecond precision. Hours are 0..23, minutes/seconds 0..59, and nanoseconds 0..999999999; leap seconds are not represented.

  • enum Month

    A Gregorian month, numbered January = 1 through December = 12.

  • class OffsetDateTime

    A local date-time paired with a fixed UTC offset. Equality compares both components, so equal instants can have unequal offset date-times.

  • class UtcOffset

    A fixed signed offset from UTC, at one-second resolution and within 18 hours in either direction. This is not a time-zone rule database.

  • class YearMonth

    An immutable Gregorian year and month in the same supported year range as LocalDate.