--- title: "Relative date and time" slug: "relative-date-and-time" tags: ["Reference", "Helix", "Sec Ops and Analytics"] updated: 2026-09-02T19:14:18Z published: 2026-09-02T19:14:18Z canonical: "docs.trellix.com/relative-date-and-time" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Relative date and time TQL supports relative time searches using keywords such as the following. | `yesterday` | | --- | | `today` | | `last hour` `last day` `last week` `last month` `last year` | | `X hours ago` `X days ago` `X weeks ago` `X months ago` `X years ago` where `X` is a number. | | `start` `end` where `start` is the earliest timestamp to return and `end` is the latest timestamp to return. | **Examples** `class=alerts start:'2022-01-01T00:00:00Z' end:'2022-03-31T23:59:59Z'` Returns events from the first three months of 2022. `srccountrycode=ru start:"24 hours ago" end:"1 hour ago"` Limits the search to a maximum of 23 hours of data starting 24 hours ago.