Skip to main content

Module time

Module time 

Source
Expand description

Time as a value (spec 002, 3.4.4). Nothing in Rustev’s contract or core reads a clock; the evaluation time is supplied.

Structs§

DurationMs
A non-negative span in milliseconds.
TimeRangeError
A timestamp outside the representable range, or an arithmetic result that would leave it.
Timestamp
Milliseconds since the Unix epoch, UTC, in 0..=MAX_TIMESTAMP_MS.

Constants§

MAX_TIMESTAMP_MS
The largest timestamp: 9999-12-31T23:59:59.999Z.