Expand description
Common data and time functions.
Constants§
- Number of milliseconds in one second.
- Number of nanoseconds in one microsecond.
- Number of nanoseconds in one millisecond.
- Number of nanoseconds in one second.
- List of weekdays (Monday to Friday).
Functions§
- Add
n
months to a chronoDateTime<Utc>
. - Floor the given UNIX nanoseconds to the nearest microsecond.
- Basic leap-year check
- Check whether the given UNIX nanoseconds timestamp is within the last 24 hours.
- Returns the last valid day of
(year, month)
. - Calculates the last weekday (Mon-Fri) from the given
year
,month
andday
. - Converts microseconds (μs) to nanoseconds (ns).
- Converts milliseconds (ms) to nanoseconds (ns).
- Converts nanoseconds (ns) to microseconds (μs).
- Converts nanoseconds (ns) to milliseconds (ms).
- Converts nanoseconds (ns) to seconds.
- Converts seconds to milliseconds (ms).
- Converts seconds to nanoseconds (ns).
- Subtract
n
months from a chronoDateTime<Utc>
. - Converts a UNIX nanoseconds timestamp to an ISO 8601 (RFC 3339) format string.
- Converts a UNIX nanoseconds timestamp to an ISO 8601 (RFC 3339) format string with millisecond precision.