chrono library

Classes

CompoundDaysDuration
CompoundDuration
Date
A date in the ISO 8601 calendar.
DateAsIsoStringJsonConverter
DateTime
A date and time in the ISO 8601 calendar, represented using Date and Time.
DateTimeAsIsoStringJsonConverter
Days
DaysDuration
Duration
FixedDaysDuration
FractionalSeconds
Hours
Instant
A point in time, represented as the FractionalSeconds that passed since the Unix epoch.
InstantAsIsoStringJsonConverter
Encodes an Instant as an ISO 8601 string, e.g., “2023-04-23T18:24:20.12”.
Microseconds
MicrosecondsDuration
Milliseconds
MillisecondsDuration
Minutes
MinutesDuration
MonthAsIntJsonConverter
Encodes a Month as an int: 1 for January, …, 12 for December.
MonthDay
The combination of a Month and a day of the month.
MonthDayAsIsoStringJsonConverter
Months
MonthsDuration
Nanoseconds
NanosecondsDuration
OrdinalDate
A date in the ISO 8601 calendar, represented by a Year and a day of the year.
OrdinalDateAsIsoStringJsonConverter
Seconds
SecondsDuration
Time
TimeAsIsoStringJsonConverter
TimeDuration
UnixEpochMicroseconds
A point in time, represented as the Microseconds that passed since the Unix epoch.
UnixEpochMicrosecondsAsIntJsonConverter
Encodes UnixEpochMicroseconds as an integer number of milliseconds that passed since the Unix epoch.
UnixEpochMicrosecondsAsIsoStringJsonConverter
Encodes UnixEpochMicroseconds as an ISO 8601 string, e.g., “2023-04-23T18:24:20.123456”.
UnixEpochMilliseconds
A point in time, represented as the Milliseconds that passed since the Unix epoch.
UnixEpochMillisecondsAsIntJsonConverter
Encodes UnixEpochMilliseconds as an integer number of milliseconds that passed since the Unix epoch.
UnixEpochMillisecondsAsIsoStringJsonConverter
Encodes UnixEpochMilliseconds as an ISO 8601 string, e.g., “2023-04-23T18:24:20.123”.
UnixEpochNanoseconds
A point in time, represented as the Nanoseconds that passed since the Unix epoch.
UnixEpochNanosecondsAsIntJsonConverter
Encodes UnixEpochNanoseconds as an integer number of milliseconds that passed since the Unix epoch.
UnixEpochNanosecondsAsIsoStringJsonConverter
Encodes UnixEpochNanoseconds as an ISO 8601 string, e.g., “2023-04-23T18:24:20.123456789”.
UnixEpochSeconds
A point in time, represented as the Seconds that passed since the Unix epoch.
UnixEpochSecondsAsIntJsonConverter
Encodes UnixEpochSeconds as an integer number of seconds that passed since the Unix epoch.
UnixEpochSecondsAsIsoStringJsonConverter
Encodes UnixEpochSeconds as an ISO 8601 string, e.g., “2023-04-23T18:24:20”.
UnixEpochTimestamp<D extends TimeDuration>
A point in time, represented as the duration that passed since the Unix epoch.
WeekDate
A date in the ISO 8601 week-based calendar.
WeekDateAsIsoStringJsonConverter
WeekdayAsIntJsonConverter
Encodes a Weekday as an ISO 8601 weekday number: 1 for Monday, …, 7 for Sunday.
Weeks
Year
A year in the ISO 8601 calendar.
YearAsIntJsonConverter
Encodes a Year as an integer.
YearAsIsoStringJsonConverter
Encodes a year as an ISO 8601 string: YYYY, -YYYY, or +YYYYY.
YearMonth
The combination of a Year and a Month.
YearMonthAsIsoStringJsonConverter
Years
YearWeek
YearWeekAsIsoStringJsonConverter

Enums

Month
A month in the ISO 8601 calendar.
Rounding
Weekday
A weekday in the ISO 8601 calendar.

Extensions

ChronoAny on Any

Functions

setChronoGladosDefaults() → void