Module holochain_types::timestamp
source · [−]Expand description
A UTC timestamp for use in Holochain’s headers.
Includes a struct that gives a uniform well-ordered byte representation of a timestamp, used for chronologically ordered database keys
Structs
A UTC timestamp for use in Holochain’s headers. It is assumed to be untrustworthy: it may
contain times offset from the UNIX epoch with the full +/- i64 range. Most of these times are
not representable by a chrono::DateTime
A representation of a Timestamp which can go into and out of a byte slice in-place without allocation. Useful for ordered database keys.
Enums
Constants
Total size in bytes of a TimestampKey
Functions
Returns the current system time as a Timestamp. We do not make this a holochain_zome_types timestamp::Timestamp impl now() method, because we need Timestamp to be WASM compatible, and chrono doesn’t have a now() implementation for WASM. So, use holochain_types timestamp::now() instead.