Skip to content

Commit 644a29c

Browse files
committed
add docs
1 parent 59ce6ac commit 644a29c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/checks/expressions/_index.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,17 @@ For backwards compatibility there more operators available:
5858
| Operator | Alias | Description | Example |
5959
| -------- | --------| ----------------| --------------------------- |
6060
| `''` | `str()` | String constant | exe like str(winlogon.exe) |
61+
62+
63+
## Date Keywords
64+
65+
For attributes representing a date or timestamp, the following keywords can be used as values:
66+
67+
| Keyword | Description |
68+
| ----------- | ----------- |
69+
| `today` | Start of the current day (00:00:00 local time) |
70+
| `thisweek` | Start of the current week (Monday 00:00:00 local time) |
71+
| `thismonth` | Start of the current month (1st, 00:00:00 local time) |
72+
| `thisyear` | Start of the current year (Jan 1st, 00:00:00 local time) |
73+
74+
Each keyword can be suffixed with `:utc` to use UTC time instead of local time, e.g., `today:utc`.

0 commit comments

Comments
 (0)