mz_ore
0.1.0
Module now
Structs
Statics
Functions
Type Aliases
In crate mz_ore
?
Module
mz_ore
::
now
source
·
[
−
]
Expand description
Now utilities.
Structs
§
NowFn
A function that returns system or mocked time.
Statics
§
NOW_ZERO
A
NowFn
that always returns zero.
SYSTEM_TIME
A
NowFn
that returns the actual system time.
Functions
§
to_datetime
Converts epoch milliseconds to a DateTime.
Type Aliases
§
EpochMillis
A type representing the number of milliseconds since the Unix epoch.