Everr
Reference

Date Math Expressions

Syntax reference for relative and absolute time expressions used in the time range picker.

The time range picker on every dashboard page accepts date math expressions for flexible time filtering. You can use quick presets like "Last 7 days" or enter custom expressions in the From and To fields.

Syntax

A date math expression starts with an anchor followed by optional operations.

anchor[operation][operation]...

Anchors

AnchorDescriptionExample
nowCurrent timenow
ISO-8601 dateAbsolute timestamp, followed by || before operations2024-01-01||+1M

Operations

Operations are chained directly after the anchor without separators.

OperatorDescriptionFormat
+Add time+[amount]unit
-Subtract time-[amount]unit
/Round to boundary/unit

The amount defaults to 1 when omitted (e.g. +d is equivalent to +1d).

Units

UnitDescription
sSeconds
mMinutes
hHours
dDays
wWeeks
MMonths (capital M)
yYears

Examples

ExpressionDescription
nowCurrent time
now-7d7 days ago
now-24h24 hours ago
now-30m30 minutes ago
now-1y1 year ago
now+2d2 days from now
now/dStart of today
now-7d/d7 days ago, rounded to start of day
now-1M/MStart of last month
2024-01-01||+1MJanuary 1 2024 plus 1 month

Rounding

The round operator (/) snaps a date to a time boundary. Whether it rounds to the start or end of the period depends on context:

  • The From field rounds down (start of period)
  • The To field rounds up (end of period)

Round down (From field)

ExpressionResult
now/dToday at 00:00:00.000
now/wMonday of the current week at 00:00:00.000
now/MFirst day of the month at 00:00:00.000
now/yJanuary 1 of the year at 00:00:00.000

Round up (To field)

ExpressionResult
now/dToday at 23:59:59.999
now/wSunday of the current week at 23:59:59.999
now/MLast day of the month at 23:59:59.999
now/yDecember 31 of the year at 23:59:59.999

Quick ranges

The time range picker includes presets for common ranges:

PresetFromTo
Last 5 minutesnow-5mnow
Last 15 minutesnow-15mnow
Last 1 hournow-1hnow
Last 6 hoursnow-6hnow
Last 12 hoursnow-12hnow
Last 24 hoursnow-24hnow
Last 2 daysnow-2dnow
Last 7 daysnow-7dnow
Last 14 daysnow-14dnow
Last 30 daysnow-30dnow
Last 90 daysnow-90dnow
Last 1 yearnow-1ynow
Todaynow/dnow/d
Yesterdaynow-1d/dnow-1d/d
This weeknow/wnow/w
This monthnow/Mnow/M

URL parameters

Time ranges are stored in the URL as from and to query parameters, making them shareable:

/dashboard/analytics?from=now-7d&to=now
/dashboard/runs?from=now-30d&to=now&repo=my-org/my-repo