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§
- Floor the given UNIX nanoseconds to the nearest microsecond.
- Check whether the given UNIX nanoseconds timestamp is within the last 24 hours.
- 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).
- Converts a UNIX nanoseconds timestamp to an ISO 8601 formatted string.