API Endpoints: Query string date expressions¶
Date expressions can be used in the
query parameter when retreiving and filtering Requests from the API.
The expression starts with an anchor date, which can either be
*), or a date string ending with
|| (two pipe characters).
This anchor date can optionally be followed by one or more maths expressions:
+1h– Add one hour
-1d– Subtract one day
/d– Round down to the nearest day
The supported time units differ from those supported by time units for durations. The supported units are:
Assuming now is 2001-01-01 12:00:00, some examples are:
|now in milliseconds plus one hour. Resolves to: 2001-01-01 13:00:00
|now in milliseconds minus one hour. Resolves to: 2001-01-01 11:00:00
|now in milliseconds minus one hour, rounded down to UTC 00:00. Resolves to: 2001-01-01 00:00:00
|2001-02-01 in milliseconds plus one month. Resolves to: 2001-03-01 00:00:00