Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

Time

Time methods and properties..

Description

Time methods are provided to represent an instantaneous point in time.

Instance properties

Method Description

Get the day-of-month.

Get the day-of-week.

Get the day-of-year.

Get the Time hour field.

Get the Time minute field.

Get the Time month field.

Get the Time second field.

Get the Time year field.

Static methods

Method Description

Convert an ISO 8601 time String to a Time value.

Get the time given the epoch time.

Convert a time String to a Time value.

Get the query start Time.

Instance methods

Method Description

Add a time interval to Time.

Get the difference between two times.

Subtract a time interval from Time.

Convert a Time to epoch microseconds.

Convert a Time to epoch milliseconds.

Convert a Time to epoch seconds.

Convert a Time to a String.

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!