toSeconds()

Convert a time to epoch seconds.

Signature

toSeconds(): Number

Description

Convert a time to epoch seconds.

Parameters

None

Return value

Type Description

Number

Epoch seconds.

Examples

Time('2023-02-10T12:01:19.000Z').toSeconds()
1676030479

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!