Module time

Module time 

Source
Expand description

Utility functions for std::time.

Constants§

MAX_DURATION_SINCE_UNIX_EPOCH
Maximum duration that can be safely added to SystemTime::UNIX_EPOCH without overflow on the current platform.
NANOS_PER_SEC
Number of nanoseconds in a second.
SYSTEM_TIME_PRECISION
The precision of SystemTime on Unix.

Traits§

DurationExt
Extension trait providing additional functionality for Duration.
SystemTimeExt
Extension trait to add methods to std::time::SystemTime