Timeframe selector

  • 3-min read
  • Page has not been published yet

The timeframe selector lets you filter and analyze data by timeframes. You can use custom time values or presets. Timeframe selector uses the time zone specified in the user settings for your computer.

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.