The Fauna service will be ending on May 30, 2025.

For more information on the service wind down, see our announcement and the Fauna Service End-of-Life FAQ.

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
\