Time.now()

Get the transaction start Time in UTC.

Signature

Time.now(): Time

Description

The Time.now() method gets the start time of the current query. Calling Time.now() multiple times in a query returns the same value each time. The Time object returned is in UTC and has nanosecond resolution.

Parameters

None

Return value

Type Description

Time

ISO-8601 time value representing the start time of the current query.

Examples

Get the query start time:

Time.now()
"2022-10-20T21:15:09.890729Z"

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!