Supported in: Batch, Streaming
Subtract value from timestamp in specified unit.
Expression categories: Datetime
Output type: Timestamp
Argument values:
DAYS
Output: 2022-02-01T00:00:00Z
Argument values:
HOURS
Output: 2022-02-01T22:00:00Z
Argument values:
MILLISECONDS
Output: 2022-02-01T23:59:59.998Z
Argument values:
MINUTES
Output: 2022-02-01T23:58:00Z
Argument values:
MONTHS
Output: 2021-12-01T00:00:00Z
Argument values:
QUARTERS
Output: 2021-08-01T00:00:00Z
Argument values:
SECONDS
Output: 2022-02-01T23:59:55Z
Argument values:
YEARS
Output: 2020-02-01T00:00:00Z
Argument values:
date
YEARS
value
date | value | Output |
---|---|---|
2022-02-01T00:00:00Z | null | null |
null | 2 | null |
null | null | null |