Expand description
Date conversion and formatting helpers for Messages timestamps.
Most dates are stored as nanosecond-precision unix timestamps with an epoch of 1/1/2001 00:00:00 in UTC.
Constants§
- TIMESTAMP_
FACTOR - Factor used to convert nanosecond-precision timestamps to seconds.
Functions§
- format
- Format a local timestamp for export output.
- get_
local_ time - Convert a raw Messages timestamp into local time.
- get_
offset - Return the Unix timestamp offset for the Messages epoch.
- readable_
diff - Format the elapsed time between two local timestamps.