Time
Time( str )
Time( str )
Time( str )
Time( str )
Time( str )
Time( str )
Description
The Time
function constructs a Timestamp, either from the
string now
, or from an ISO 8601 string.
The special string now
may be used to construct a time from the
transaction’s start time. Multiple references to now
within the same
transaction produce the same timestamp. The transaction’s start time is
the same on all nodes that participate in the transaction. During a
temporal query, now
still means the transaction’s start time, not the
temporal query’s specified timestamp.
Use of now is deprecated. Use Now instead.
|
Returns
A Timestamp based on the value of str
.
Examples
The following query returns a Timestamp constructed from the provided string:
FaunaTime(1970-01-01T00:00:00Z)
{0 62135596800 <nil>}
1970-01-01T00:00:00Z
Time("1970-01-01T00:00:00Z")
FaunaTime('1970-01-01T00:00:00Z')
1970-01-01T00:00:00Z
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!