# Time Filters

There are two types of time operators:&#x20;

* absolute&#x20;
* relative

#### Absolute Time Operators

Absolute time filters use the specific time values to generate your query results. These are useful when creating queries for specific time ranges.

#### Relative Time Operators

Relative time filters allow you to create queries with rolling date values relative to the current date. These are useful when creating queries that update each time you run the query.

#### Partial or Complete Time Periods

The operators you use determines whether partial time periods or only complete time periods will be included. For example, the expression `3 days` includes the current, partial day as well as the prior two days. The expression `3 days ago for 3 days` includes the previous three complete days and excludes the current, partial day.

&#x20;

<table><thead><tr><th width="234">Time Operator</th><th>Definition</th></tr></thead><tbody><tr><td><strong>is in the last</strong></td><td>Up to and including the current GMT time. </td></tr><tr><td><strong>is on the day</strong></td><td>A specific date in GMT. </td></tr><tr><td><strong>is in range</strong></td><td>A specific GMT date range. </td></tr><tr><td><strong>is before</strong></td><td><p>Excludes the time you specify.</p><p></p><p>E.g. The filter field "is before" 2018-01-01 will display results from all dates before 2018-01-01, but not data from 2018-01-01.  </p></td></tr><tr><td><strong>is on or after</strong></td><td><p>Includes the time you specify.</p><p></p><p>E.g. The filter field "is on or after" 2018-01-01 will display results from all from 2018-01-01 and all dates later than 2018-01-01.  </p></td></tr><tr><td><strong>is in the year</strong></td><td>Specify the year. </td></tr><tr><td><strong>is in the month</strong></td><td>Specify the month and the year. </td></tr><tr><td><strong>is this</strong></td><td><p>Specify the current day, week, month, quarter, or year.</p><p></p><p>E.g. "is this" "month" will display results from the first GMT day of the current month, to the current day, even if the current day is incomplete.  </p></td></tr><tr><td><strong>is next</strong></td><td><p>Specify the coming day, week, month, quarter, or year.</p><p></p><p>E.g. If the current date is 2018-01-01, "is next" "week" is the following Monday going forward 1 week (2018-01-08 00:00 through 2018-01-14 23:59). </p></td></tr><tr><td><strong>is previous</strong></td><td><p>Specify the previous day, week, month, quarter, or year.</p><p></p><p>E.g. If the current date is 2018-01-01, "is previous" "week" is the previous complete seven days and excludes the current, partial day.  </p></td></tr><tr><td><strong>is</strong></td><td><p>For excluding the current, partial, incomplete day, week, month, quarter, or year and including the user specified period thereafter.</p><p></p><p><img src="https://1800800006-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCgjz9nFZqIwynK1SO4gz%2Fuploads%2FJYxbJp8uTMELxkNmK6If%2Fimage.png?alt=media&#x26;token=d328b3d0-fa80-4b77-bbb2-91cc1de99d3c" alt="" data-size="original"></p><p></p><p>E.g. The expression <code>3 days ago for 3 days</code> includes the previous three complete days and excludes the current, partial day. </p></td></tr><tr><td><strong>is null</strong></td><td>Used when querying data where the time value is empty. </td></tr><tr><td><strong>is any time</strong></td><td>The time frame for the query is left open to encompass the maximum range of times available to be queried. </td></tr><tr><td><strong>is not null</strong></td><td>Used to exclude data where the time value is empty. </td></tr><tr><td><strong>matches a user attribute</strong></td><td><p>Filters to automatically customize a Look or Dashboard for that specific User and is an optional customization.</p><p></p><p>Contact your ChainArgos administrator for more information on customizing this function.  </p></td></tr><tr><td><strong>matches (advanced)</strong> </td><td><p>Closer to natural language inputs.</p><p></p><p>Specific rules apply for including special characters in the filter:</p><ul><li>to include <code>"</code>, <code>%</code>, or <code>_</code>, prefix the filter with the character, <code>^</code>. For example: <code>^"</code>, <code>^%</code>, and <code>^_</code></li><li>to include a leading <code>-</code>, prefix the filter with the character, <code>^</code> . For example: <code>^-</code>. This is only necessary if the <code>-</code> is the leading character (at the front of the filter field), you do not need to include the character, <code>^</code> , if the <code>-</code> is inside the filter field</li><li>to include <code>^</code>, prefix the filter field as <code>^^</code></li><li>to include a comma in a regular filter field, prefix the comma with a backslash character, <code>\</code>. For example, <code>hamas\, terrorists</code></li><li>to include a comma with the <strong>matches (advanced)</strong> option in a filter, prefix the comma with the escape character, <code>^</code>. For example, <code>hamas^, terrorists</code></li></ul></td></tr></tbody></table>
