Expand description
Primitives for civil dates and times.
Structs§
- Date
- A Gregorian civil date.
- Date
Time - A civil time of a day on a particular Gregorian date.
- ISOWeek
Date - An ISO 8601 civil week date.
- Time
- The civil time of day.
- Time
Nanosecond - Represents a single point in a civil day, to nanosecond precision.
- Time
Second - Represents a single point in a civil day, to second precision.
- Unix
Epoch Day - A civil date represented by a number of days since the Unix epoch (1970-01-01).
- Weekdays
Forward - An unending iterator of the days of the week.
- Weekdays
Reverse - An unending iterator of the days of the week in reverse.
Enums§
- Weekday
- A representation for the day of the week.
Functions§
- date
- Creates a new
Datevalue in aconstcontext. - datetime
- Creates a new
DateTimevalue in aconstcontext. - days_
in_ month - Return the number of days in the given month.
- days_
in_ year - Return the number of days in the given year.
- is_
leap_ year - Returns true if and only if the given year is a leap year.
- is_
long_ iso_ week_ year - Returns true if the given ISO 8601 week date year is a “long” year or not.
- time
- Creates a new
Timevalue in aconstcontext. - weeks_
in_ iso_ week_ year - Returns the total number of weeks in the year of this ISO 8601 week date.