Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (22 sloc) 472 Bytes
layout language permalink command io related_commands
api-command
JavaScript
api/javascript/to_epoch_time/
toEpochTime
time
number
now time
now/
time/

Command syntax

{% apibody %} time.toEpochTime() → number {% endapibody %}

Description

Convert a time object to its epoch time.

Example: Return the current time in seconds since the Unix Epoch with millisecond-precision.

r.now().toEpochTime()
You can’t perform that action at this time.