TimeSubtract
Not available in this language, yet.
TimeSubtract( base, offset, unit )
TimeSubtract( base, offset, unit )
TimeSubtract( base, offset, unit )
time_subtract( base, offset, unit )
TimeSubtract( base, offset, unit )
Parameters
Argument | Type | Definition and Requirements |
---|---|---|
|
||
|
The Number of |
|
|
Examples
The following query subtracts 1 second from 1 day after Unix epoch:
Not available in this language, yet.
{0 62135683199 <nil>}
1970-01-01T23:59:59Z
Time("1970-01-01T23:59:59Z")
FaunaTime('1970-01-01T23:59:59Z')
1970-01-01T23:59:59Z
The following query returns a Timestamp 5 seconds in the past before now:
Not available in this language, yet.
[{879000000 63746603234 <nil>} {879000000 63746603229 <nil>}]
[2020-07-06T12:34:56.789Z, 2020-07-06T12:34:51.789Z]
[ Time("2019-10-22T16:45:19.755048Z"),
Time("2019-10-22T16:45:14.755048Z") ]
[FaunaTime('2021-01-18T21:47:21.114Z'), FaunaTime('2021-01-18T21:47:16.114Z')]
[2020-07-06T12:34:56.789Z, 2020-07-06T12:34:51.789Z]
The following query returns a Date 1 day before 2019-11-26:
Not available in this language, yet.
{0 63710236800 <nil>}
2019-11-25
Date("2019-11-25")
2019-11-25
2019-11-25
Was this article helpful?
We're sorry to hear that.
Tell us how we can improve!
Visit Fauna's Discourse forums
or email docs@fauna.com
Thank you for your feedback!