Represents a date and time with timezone information.
- date : Thunk PlainDateTime
The plain datetime component, evaluated lazily.
- timestamp : Timestamp
The corresponding timestamp for the datetime.
- rules : TimeZone.ZoneRules
The timezone rules applied to this datetime.
- timezone : TimeZone
The timezone associated with this datetime.
Instances For
Creates a new DateTime out of a PlainDateTime and a ZoneRules. It assumes PlainDateTime is
the local time.
Instances For
Creates a new DateTime out of a PlainDateTime and a TimeZone. It assumes PlainDateTime is
the local time.
Instances For
Changes the ZoneRules to a new one.
Instances For
Returns the weekday.
Instances For
Transforms a tuple of a DateTime into a Day.Ordinal.OfYear.
Instances For
Determines the week of the year for the given DateTime, using firstDay as the start of the week
and minDays as the minimum number of days a week must have in the new year to count as week 1.
Instances For
Returns the week-based year for the given DateTime, using firstDay as the start of the week
and minDays as the minimum number of days a week must have in the new year to count as week 1.
The week-based year may differ from the calendar year for dates near the start or end of the year.
Instances For
Returns the aligned week of the month for a DateTime. Weeks are fixed 7-day slots
starting from day 1: days 1–7 are week 1, days 8–14 are week 2, etc.
Instances For
Returns the week of the month for the given DateTime, where weeks start on firstDay.
The first partial week containing day 1 is week 1, so weeks may span fewer than 7 days.
Instances For
Add Day.Offset to a DateTime.
Instances For
Subtract Day.Offset from a DateTime.
Instances For
Add Week.Offset to a DateTime.
Instances For
Subtract Week.Offset from a DateTime.
Instances For
Add Month.Offset to a DateTime, clipping to the last valid day.
Instances For
Subtract Month.Offset from a DateTime, clipping to the last valid day.
Instances For
Add Month.Offset to a DateTime, rolling over excess days.
Instances For
Subtract Month.Offset from a DateTime, rolling over excess days.
Instances For
Add Year.Offset to a DateTime, rolling over excess days.
Instances For
Add Year.Offset to a DateTime, clipping to the last valid day.
Instances For
Subtract Year.Offset from a DateTime, clipping to the last valid day.
Instances For
Subtract Year.Offset from a DateTime, rolling over excess days.
Instances For
Add Hour.Offset to a DateTime.
Instances For
Subtract Hour.Offset from a DateTime.
Instances For
Add Minute.Offset to a DateTime.
Instances For
Subtract Minute.Offset from a DateTime.
Instances For
Add Second.Offset to a DateTime.
Instances For
Subtract Second.Offset from a DateTime.
Instances For
Add Nanosecond.Offset to a DateTime.
Instances For
Subtract Nanosecond.Offset from a DateTime.
Instances For
Creates a new DateTime by adjusting the day of the month to the given days value, with any
out-of-range days clipped to the nearest valid date.
Instances For
Creates a new DateTime by adjusting the day of the month to the given days value, with any
out-of-range days rolled over to the next month or year as needed.
Instances For
Creates a new DateTime by adjusting the nano component with a new millis that will set
in the millisecond scale.
Instances For
Checks if the DateTime is in a leap year.
Instances For
Returns the local (civil) date of the DateTime as a Day.Offset relative to 1970-01-01.
Instances For
Creates a DateTime from a local date given as a Day.Offset relative to 1970-01-01, a
PlainTime, and ZoneRules. The day offset is interpreted as a local (civil) date, not UTC.