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 the month from a Time.

Get the day of the week from a Time.

Get the day of the year from a Time.

Get the hour of a Time.

Get the minute of a Time.

Get the month of a Time.

Get the second of a Time.

Get the year of a Time.

Static methods

Method Description

Construct a Time from an ISO 8601 timestamp String.

Convert a Unix epoch timestamp to a Time.

Construct a Time from an ISO 8601 timestamp String.

Get the current UTC Time.

Instance methods

Method Description

Add a time interval to a Time.

Get the difference between two Times.

Subtract a time interval from a Time.

Convert a Time to a Unix epoch timestamp in microseconds.

Convert a Time to a Unix epoch timestamp in milliseconds.

Convert a Time to a Unix epoch timestamp in 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!