TimeSubtract
Copied!
TimeSubtract( base, offset, unit )
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
||
|
The integer number of |
|
|
Examples
The following query subtracts 1 second from 1 day after Unix epoch:
Time("1970-01-01T23:59:59Z")
The following query returns a Timestamp 5 seconds in the past before now:
[ Time("2021-06-23T12:24:16.798Z"), Time("2021-06-23T12:24:11.798Z") ]
The following query returns a Date 1 day before 2019-11-26:
Date("2019-11-25")
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!