Time & Date Query Functions

Humio’s query functions take a set of events, parameters, or configurations; and produce, reduce, or modify values within that set, or within the events themselves within the query pipeline.

Below is an alphabetical listing of Humio query functions related to time and date fields. For more information on a particular query function, click on it.

Function

Description

end()

Assigns the current time as milliseconds since 1970 to the end time of query.

findTimestamp()

Finds timestamp in given field and parses, trying multiple timestamp formats.

now()

Assigns the current time value as milliseconds since 1970.

parseTimestamp()

Parses a string into a timestamp.

start()

Assigns the current time as milliseconds since 1970.

time:dayOfMonth()

Gets the day of the month of a timestamp field.

time:dayOfWeek()

Gets day of the week from 1 (Monday) to 7 (Sunday) of a timestamp field.

time:dayOfWeekName()

Gets the English display name of day of the week of a timestamp field.

time:dayOfYear()

Gets the day of the year of a timestamp field, from 1 to 365, or 366 in a leap year.

time:hour()

Gets the hour (24-hour clock) of a timestamp field.

time:millisecond()

Gets the millisecond of a timestamp field.

time:minute()

Gets the minute value of a timestamp field.

time:month()

Gets the month of a timestamp field. (from 1 to 12).

time:monthName()

Gets the English name of month of a timestamp field (e.g., January).

time:second()

Gets the second of a timestamp field.

time:weekOfYear()

Gets the week number within a year of a timestamp, a value from 1 to 53.

time:year()

Gets the year of a timestamp field.