time
Time helpers. Reading the clock is explicit and fallible: a clock set before 1970 is an error, not 0.
Install
Section titled “Install”Cargo feature time (enabled by default). To compile only this module:
or in Cargo.toml:
Import path: helpers4::time.
| Item | What it does |
|---|---|
unix_now | The current time as whole seconds since the Unix epoch. |
unix_now_millis | The current time as milliseconds since the Unix epoch. |
Error types
Section titled “Error types”Documented on the page of the helper that returns them.
| Type | Returned by |
|---|---|
ClockError | unix_now, unix_now_millis |
