The year() function extracts the year from a time value.
year(time)
Augment | Type | Description |
|---|---|---|
time | Datetime, timestamp, string | The time value |
Return type: Integer
UQLreturn year("2022-10-5")
Result: 2022
Retrieve reviews posted in 2018.
UQLfind().nodes({year(@review.time) == 2018}) as n return n{*}