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.toSeconds()

Convert a Time to a Unix epoch timestamp in seconds.

Signature

toSeconds() => Number

Description

Convert a Time to a Unix epoch timestamp in seconds.

Parameters

None

Return value

Type Description

Number

Unix epoch timestamp in seconds.

Examples

Time("2099-02-10T12:01:19.000Z").toSeconds()
4074408079

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!