Skip to main content

millis_since_epoch

Function millis_since_epoch 

Source
fn millis_since_epoch(time: SystemTime) -> Result<Timestamp>
Expand description

Converts a SystemTime to a millisecond [Timestamp].

duration_since reports an instant before the epoch as an error rather than a negative duration, and an RFC3339 query parameter can name one, so the sign is recovered here instead of unwrapping.