Scalar FunctionsDate & Time Functions
ago
Subtracts the given timespan from the current query timestamp.
Syntax
ago(duration)Parameters
Prop
Type
Returns: datetime
Examples
Example 1
print ago(3d) // three days before the raid| print_0 (datetime) |
|---|
| 2023-12-29T00:00:00Z |
Example 2
print ago(7d) // a week since the longships departed| print_0 (datetime) |
|---|
| 2023-12-25T00:00:00Z |