Skip to main content

Module dates

Module dates 

Source
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.