Skip to main content
Time functions calculate and manipulate time data.

UNIX_TIMESTAMP

Converts a date string in RFC3339 format (for example, 2017-07-20T11:22:44.888Z) to a Unix timestamp (1500549764.888). This is useful for comparing two timestamps in an event; for example, to calculate a duration from a start and an end timestamp.

EVENT_TIMESTAMP

Returns the Unix timestamp, also known as the Epoch timestamp, of the current event as a float (1500549764.888, for example). This is useful for comparing two timestamps in an event; for example, to calculate a duration from a start and an end timestamp. This function takes no arguments.

INGEST_TIMESTAMP

Returns the Unix timestamp, also known as the Epoch timestamp, indicating when Honeycomb’s servers received the current event, as a float (1500549764.888, for example). This is useful for debugging event latency by comparing the event timestamp to the ingestion time. This function takes no arguments.

FORMAT_TIME

Formats a Unix timestamp, also known as an Epoch timestamp, as a string. The first argument is a format specifier string compatible with POSIX strftime, and the second argument is the numeric timestamp. Does not support not-UTC timezones or locale-modified specifiers. Also note this formatting is more expensive than other calculated field functions and may slow down queries, especially when using a complex format.