datetime module

datetime::epoch

Get the Unix epoch timestamp in seconds from a datetime.

Syntax

RQL

Parameters

NameTypeDescription
datetime_valueDatetimeThe datetime to convert to epoch seconds

Return Value

Returns an integer representing the number of seconds since the Unix epoch.

Examples

$ Get epoch seconds from datetime
$ ctrl+enter to run

Related Functions