Documentation

Std.Time.Zoned.DateTime

Equations
@[inline]

Creates a new DateTime out of a Timestamp that is in a TimeZone.

Equations

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

Equations
@[inline]

Creates a Timestamp out of a DateTime.

Equations
@[inline]
def Std.Time.DateTime.convertTimeZone {tz : TimeZone} (date : DateTime tz) (tz₁ : TimeZone) :
DateTime tz₁

Changes the TimeZone to a new one.

Equations
@[inline]

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

Equations
@[inline]

Creates a new DateTime from a PlainDateTime, assuming that the PlainDateTime is relative to the given TimeZone.

Equations
@[inline]

Add Hour.Offset to a DateTime.

Equations
@[inline]

Subtract Hour.Offset from a DateTime.

Equations
@[inline]

Add Minute.Offset to a DateTime.

Equations
@[inline]

Subtract Minute.Offset from a DateTime.

Equations
@[inline]

Add Second.Offset to a DateTime.

Equations
@[inline]

Subtract Second.Offset from a DateTime.

Equations
@[inline]

Add Millisecond.Offset to a DateTime.

Equations
@[inline]

Subtract Millisecond.Offset from a DateTime.

Equations
@[inline]

Add Nanosecond.Offset to a DateTime.

Equations
@[inline]

Subtract Nanosecond.Offset from a DateTime.

Equations
@[inline]

Add Day.Offset to a DateTime.

Equations
@[inline]

Subtracts Day.Offset to a DateTime.

Equations
@[inline]

Add Week.Offset to a DateTime.

Equations
@[inline]

Subtracts Week.Offset to a DateTime.

Equations

Add Month.Offset to a DateTime, it clips the day to the last valid day of that month.

Equations
@[inline]

Subtracts Month.Offset from a DateTime, it clips the day to the last valid day of that month.

Equations

Add Month.Offset from a DateTime, this function rolls over any excess days into the following month.

Equations
@[inline]

Subtract Month.Offset from a DateTime, this function rolls over any excess days into the following month.

Equations
@[inline]

Add Year.Offset to a DateTime, this function rolls over any excess days into the following month.

Equations
@[inline]

Add Year.Offset to a DateTime, it clips the day to the last valid day of that month.

Equations
@[inline]

Subtract Year.Offset from a DateTime, this function rolls over any excess days into the following month.

Equations
@[inline]

Subtract Year.Offset from to a DateTime, it clips the day to the last valid day of that month.

Equations
@[inline]

Creates a new DateTime tz 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 DateTime tz 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 DateTime tz 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 DateTime tz 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 DateTime tz 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 DateTime tz 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 DateTime tz by adjusting the hour component.

Equations
@[inline]

Creates a new DateTime tz by adjusting the minute component.

Equations
@[inline]

Creates a new DateTime tz by adjusting the second component.

Equations
@[inline]

Creates a new DateTime tz by adjusting the nano component.

Equations
@[inline]

Creates a new DateTime tz by adjusting the millisecond component.

Equations
@[inline]

Converts a Timestamp to a PlainDateTime

Equations
@[inline]

Getter for the Year inside of a DateTime

Equations
@[inline]

Getter for the Month inside of a DateTime

Equations
@[inline]

Getter for the Day inside of a DateTime

Equations
@[inline]

Getter for the Hour inside of a DateTime

Equations
@[inline]

Getter for the Minute inside of a DateTime

Equations
@[inline]

Getter for the Second inside of a DateTime

Equations
@[inline]

Getter for the Nanosecond inside of a DateTime

Equations
@[inline]

Gets the Weekday of a DateTime.

Equations

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

Equations
def Std.Time.DateTime.withWeekday {tz : TimeZone} (dt : DateTime tz) (desiredWeekday : Weekday) :

Sets the DateTime to the specified desiredWeekday.

Equations

Checks if the DateTime is in a leap year.

Equations

Determines the ordinal day of the year for the given DateTime.

Equations
@[inline]

Determines the week of the year for the given DateTime.

Equations

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

Equations
@[inline]

Determines the week of the month for the given DateTime. 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
@[inline]

Determines the quarter of the year for the given DateTime.

Equations
@[inline]

Getter for the PlainTime inside of a DateTime

Equations
@[inline]

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

Equations