Skip to content

Commit

Permalink
Merge pull request #16375 from mlobiondo-newrelic/mlobiondo/NR-201202…
Browse files Browse the repository at this point in the history
…-add-millisecond-duration

feat: Add millisecond query time duration
  • Loading branch information
rhetoric101 committed May 28, 2024
2 parents 1fd6a43 + dbac835 commit 940bfc6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/content/docs/nrql/using-nrql/query-time-range.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ These timestamp values resolve to a time range starting at `2023-12-18T11:34:56.
### Relative time (n \[time units] ago) [#relative-time-n-units-ago]
Relative time can be referenced as `n [time units] ago` with the following components:
* `n`: A positive integer value.
* `[time units]`: Available time units include `seconds`, `minutes`, `hours`, `days`, `weeks`, `months` (defined as 30 days), `quarters` (defined as 91 days), or `years` (defined as 365 days). Time unit pluralization is optional, so you can leave the "s" off the end of the unit. `2 day ago` and `2 days ago` have the same meaning.
* `[time units]`: Available time units include `milliseconds`, `seconds`, `minutes`, `hours`, `days`, `weeks`, `months` (defined as 30 days), `quarters` (defined as 91 days), or `years` (defined as 365 days). Time unit pluralization is optional, so you can leave the "s" off the end of the unit. `2 day ago` and `2 days ago` have the same meaning.

The time is relative to the time you run the query. For example, assume that you ran a query at `2023-12-18T12:34:56.789Z`. You would get different results depending on what relative time value you used:

Expand All @@ -88,6 +88,10 @@ The time is relative to the time you run the query. For example, assume that you
<td>`NOW` (query execution time)</td>
<td style="font-family:monospace">2023-12-18T12:34:56.789Z</td>
</tr>
<tr>
<td>`2 milliseconds ago`</td>
<td style="font-family:monospace">2023-12-18T12:34:54.<DoNotTranslate>**.787**</DoNotTranslate>Z</td>
</tr>
<tr>
<td>`2 seconds ago`</td>
<td style="font-family:monospace">2023-12-18T12:34:<DoNotTranslate>**54**</DoNotTranslate>.789Z</td>
Expand Down

0 comments on commit 940bfc6

Please sign in to comment.