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.

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.

Event timestamp functions

To get the timestamp of the current event or the time Honeycomb received it, use EVENT_TIMESTAMP and INGEST_TIMESTAMP. You can find both functions in Event Metadata Functions.