Documentation

Std.Time.Zoned.ZonedDateTime

Equations
@[inline]

Creates a new ZonedDateTime out of a Timestamp and a ZoneRules.

Equations
  • One or more equations did not get rendered due to their size.
@[inline]

Creates a new ZonedDateTime out of a PlainDateTime and a ZoneRules.

Equations
  • One or more equations did not get rendered due to their size.
@[inline]

Creates a new Timestamp out of a ZonedDateTime.

Equations
  • date.toTimestamp = date.timestamp
@[inline]

Changes the ZoleRules to a new one.

Equations
@[inline]

Creates a new ZonedDateTime out of a PlainDateTime. It assumes that the PlainDateTime is relative to UTC.

Equations
@[inline]

Converts a ZonedDateTime to a PlainDateTime

Equations
  • dt.toPlainDateTime = dt.date.get
@[inline]

Converts a ZonedDateTime to a PlainDateTime

Equations
@[inline]

Getter for the PlainTime inside of a ZonedDateTime

Equations
  • zdt.time = zdt.date.get.time
@[inline]

Getter for the Year inside of a ZonedDateTime

Equations
  • zdt.year = zdt.date.get.year
@[inline]

Getter for the Month inside of a ZonedDateTime

Equations
  • zdt.month = zdt.date.get.month
@[inline]

Getter for the Day inside of a ZonedDateTime

Equations
  • zdt.day = zdt.date.get.day
@[inline]

Getter for the Hour inside of a ZonedDateTime

Equations
  • zdt.hour = zdt.date.get.time.hour
@[inline]

Getter for the Minute inside of a ZonedDateTime

Equations
  • zdt.minute = zdt.date.get.minute
@[inline]
def Std.Time.ZonedDateTime.second (zdt : ZonedDateTime) :
Second.Ordinal zdt.date.get.time.second.fst

Getter for the Second inside of a ZonedDateTime

Equations
  • zdt.second = zdt.date.get.time.second.snd
@[inline]

Getter for the Millisecond inside of a ZonedDateTime.

Equations
  • dt.millisecond = dt.date.get.time.millisecond
@[inline]

Getter for the Nanosecond inside of a ZonedDateTime

Equations
  • zdt.nanosecond = zdt.date.get.time.nanosecond
@[inline]

Getter for the TimeZone.Offset inside of a ZonedDateTime

Equations
  • zdt.offset = zdt.timezone.offset
@[inline]

Returns the weekday.

Equations
  • zdt.weekday = zdt.date.get.weekday
@[inline]

Transforms a tuple of a ZonedDateTime into a Day.Ordinal.OfYear.

Equations
@[inline]

Determines the week of the year for the given ZonedDateTime.

Equations
  • date.weekOfYear = date.date.get.weekOfYear

Returns the unaligned week of the month for a ZonedDateTime (day divided by 7, plus 1).

Equations
  • date.weekOfMonth = date.date.get.weekOfMonth
@[inline]

Determines the week of the month for the given ZonedDateTime. The week of the month is calculated based on the day of the month and the weekday. Each week starts on Monday because the entire library is based on the Gregorian Calendar.

Equations
  • date.alignedWeekOfMonth = date.date.get.alignedWeekOfMonth
@[inline]

Determines the quarter of the year for the given ZonedDateTime.

Equations
  • date.quarter = date.date.get.quarter

Add Day.Offset to a ZonedDateTime.

Equations

Subtract Day.Offset from a ZonedDateTime.

Equations

Add Week.Offset to a ZonedDateTime.

Equations

Subtract Week.Offset from a ZonedDateTime.

Equations

Add Month.Offset to a ZonedDateTime, clipping to the last valid day.

Equations

Subtract Month.Offset from a ZonedDateTime, clipping to the last valid day.

Equations

Add Month.Offset to a ZonedDateTime, rolling over excess days.

Equations

Subtract Month.Offset from a ZonedDateTime, rolling over excess days.

Equations

Add Year.Offset to a ZonedDateTime, rolling over excess days.

Equations

Add Year.Offset to a ZonedDateTime, clipping to the last valid day.

Equations

Subtract Year.Offset from a ZonedDateTime, clipping to the last valid day.

Equations

Subtract Year.Offset from a ZonedDateTime, rolling over excess days.

Equations

Add Hour.Offset to a ZonedDateTime.

Equations

Subtract Hour.Offset from a ZonedDateTime.

Equations

Add Minute.Offset to a ZonedDateTime.

Equations

Subtract Minute.Offset from a ZonedDateTime.

Equations
@[inline]

Add Millisecond.Offset to a DateTime.

Equations
@[inline]

Subtract Millisecond.Offset from a DateTime.

Equations

Add Second.Offset to a ZonedDateTime.

Equations

Subtract Second.Offset from a ZonedDateTime.

Equations

Add Nanosecond.Offset to a ZonedDateTime.

Equations

Subtract Nanosecond.Offset from a ZonedDateTime.

Equations
@[inline]

Determines the era of the given ZonedDateTime based on its year.

Equations
  • date.era = date.date.get.era

Sets the ZonedDateTime to the specified desiredWeekday.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the day of the month to the given days value, with any out-of-range days clipped to the nearest valid date.

Equations
@[inline]

Creates a new ZonedDateTime 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.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the month to the given month value. The day remains unchanged, and any invalid days for the new month will be handled according to the clip behavior.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the month to the given month value. The day is rolled over to the next valid month if necessary.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the year to the given year value. The month and day remain unchanged, and any invalid days for the new year will be handled according to the clip behavior.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the year to the given year value. The month and day are rolled over to the next valid month and day if necessary.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the hour component.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the minute component.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the second component.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the nano component with a new millis that will set in the millisecond scale.

Equations
@[inline]

Creates a new ZonedDateTime by adjusting the nano component.

Equations

Checks if the ZonedDateTime is in a leap year.

Equations
  • date.inLeapYear = date.year.isLeap

Converts a ZonedDateTime to the number of days since the UNIX epoch.

Equations
  • date.toDaysSinceUNIXEpoch = date.date.get.toDaysSinceUNIXEpoch