TimeAdd
TimeAdd( base, offset, unit )
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
A timestamp or date to add to. |
|
|
The integer number of |
|
|
Unit of the When When
|
Examples
The following query returns a Timestamp representing one day after the Unix epoch:
Time("1970-01-02T00:00:00Z")
The following query returns a Timestamp 5 seconds in the future from now:
[ Time("2019-10-22T16:45:19.223863Z"),
Time("2019-10-22T16:45:24.223863Z") ]
The following query returns a Date 1 day after 2019-11-26:
Date("2019-11-27")
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!