Timeframe selector

  • Latest Dynatrace
  • Reference
  • 3-min read

The timeframe selector lets you filter and analyze data by timeframes. You can use custom time values or presets.

Presets

Presets are common, useful timeframe selections, such as Last 2 hours or Today.

Custom timeframes

Custom timeframes consist of from and a to values. To define a custom timeframe, enter the from and to values in the input fields and press Apply.

From and to can be either absolute time or relative time.

Absolute time

Use the calendar to select one or more days. When you select inside the timeframe field, you can use the up and down arrow keys on your keyboard to increase and decrease the highlighted numbers.

The date and time format are based on your Dynatrace user settings. The time precision depends on the data context and the app. Common time precisions are hh:mm (hour:minute) and hh:mm:ss (hour:minute:second).

For more fine-grained time precision in your data analysis, we recommend exploring your data with DQL and Davis CoPilot in Notebooks.

Relative time

Relative time is always calculated relative to now. It follows the format -[number][unit] for past dates, and +[number][unit] for future dates.

Supported units are s (seconds), m (minutes), h (hours), d (days), w (weeks), M (months), q (quarters), y (years).

Combinations of different units (for example, -1d3h30m) and calculations with brackets (for example, (now-1d)@d) are not supported by the timeframe selector.

Example

Description

-2h

Exactly 2 hours ago

-7d

Exactly 7 days ago

-1w

Exactly 1 week ago

Timeframe selector automatically simplifies the time format for you. For example, instead of writing now-5m, just write -5m. The selector will always remove the now prefix for simplicity.

Rounded time

Rounded time expressions let you filter timeframes such as "today" (@d) "yesterday" (-1d@d) or "last week" (-1w@w). For example, @d to now will filter for everything between 00:00:00 this morning and now.

The simplest form of rounded time is @[unit]. More complex variations are possible too. For example, you can combine rounded time with time offsets, such as -[number][unit]@[unit] and +[number][unit]@[unit].

As with relative time, rounded time is relative to now and is based on your Dynatrace user settings.

Example

Description

@d

Beginning of today

-2M@M

Beginning of the month prior to last month

@y

Beginning of this year

Rounded timeframe expressions are available in the timeframe selector and in DQL.

Timeframe selector settings

The timeframe selector adapts to your Dynatrace user settings. These settings determine how dates and times are displayed, including the applied time zone and the regional date/time format.

Time zone settings

The time zone in the timeframe selector is determined by the Time zone settings in the Dynatrace user settings.

  • Specific time zone: You can explicitly select a time zone in your Dynatrace user settings.
  • Use browser default: Alternatively, you can choose Time zone - use browser default. In this case, the timeframe is derived from your browser's settings.

Format settings

The date and time format used in the timeframe selector is determined by the Region settings in the Dynatrace user settings.

  • Date format: The order and separators (for example, DD.MM.YYYY vs. MM/DD/YYYY) follow the standard for the selected region.
  • Time format: The region also determines whether a 12‑hour clock or a 24‑hour clock is displayed.
  • For example:
    • When the region is set to English - United States, the date and time render as MM/DD/YYYY with a 12‑hour clock.
    • When the region is set to German - Germany, the date and time render as DD.MM.YYYY with a 24‑hour clock.