Your Airkit journey starts here

TIMESTAMP_FROM_DATETIME

Get the value of a datetime in timestamp format.

Declaration

TIMESTAMP_FROM_DATETIME(date_time_object, unit_string) -> timestamp_value
TIMESTAMP_FROM_DATETIME(date_time_object) -> timestamp_value

Parameters

date_time_object
object -Any datetime.
unit_string
string -String representation of the unit (s for seconds or ms for milliseconds).

Return Values

timestamp_value
number -Number value of the datetime in seconds or milliseconds (default) from Jan 1 1970 12AM UTC.