Expand description
Utility functions for date and date-time conversion.
Functionsยง
- date_
time_ to_ f64 - Convert a date-time the number of seconds since the epoch, including fractional seconds, at a bit less than microsecond precision.
- date_
time_ to_ i64 - Convert a date-time to the number of microseconds since the epoch.
- date_
to_ f64 - Convert a date to the number of days since the epoch.
- date_
to_ i64 - Convert a date to the number of days since the epoch.
- i64_
milli_ to_ date_ time - Convert a number of milliseconds since the epoch back to a date.
- i64_
nano_ to_ date_ time - Convert a number of nanoseconds since the epoch back to a date.
- i64_
to_ date - Convert a number of days since the epoch back to a date.
- i64_
to_ date_ time - Convert a number of microseconds since the epoch back to a date.
- utc_now
- Returns the current date and time in UTC.