Skip to main content

unix_nanos

Function unix_nanos 

Source
pub fn unix_nanos(dt: DateTime<Utc>) -> UnixNanos
Expand description

Converts a UTC date and time to nanoseconds since the Unix epoch. A date outside the range that fits in 64 bits (years 1677 to 2262) gives 0.