Module timestamp

Source

Structs§

Timestamp
Timestamp represents the value of units(seconds/milliseconds/microseconds/nanoseconds) elapsed since UNIX epoch. The valid value range of Timestamp depends on it’s unit (all in UTC timezone):

Enums§

TimeUnit

Functions§

naive_datetime_to_timestamp 🔒
Converts the naive datetime (which has no specific timezone) to a nanosecond epoch timestamp in UTC.