RelativeTimeFilter

A window of time relative to the moment a query runs, such as today or the last seven days. Its days are read in timeZone; how the window's bounds are written is the field's: the encoding its schema declares (@QueryTemporal), an epoch in its unit or a text in its pattern.

Cases may be added in a minor release, so a when over it keeps an else branch.

Inheritors

Properties

Link copied to clipboard
abstract val timeZone: String?

The time zone, an IANA region such as Asia/Shanghai or an offset such as +08:00; null, the default, is UTC, never the server's own zone.

Functions

Link copied to clipboard

The zone the filter's days are read in, parsed: the one timeZone names, or UTC when it names none. A time group's AggregationGroup.DateHistogram.effectiveTimeZone is the same default applied to the text a backend writes.