Epoch

Convert a date and time to the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT) not counting leap seconds.

See UNIX to use the number of milliseconds elapsed instead of seconds.

Input

Field Definition Type Required
start Date and time to be converted to epoch format. Date & Time TRUE

Output

Field Definition Type
output Date and time in epoch format. Seconds are counted since January 1, 1970, midnight UTC/GMT, not counting leap seconds. Date & Time

Example

start output
2016-09-07T00:01:25.670Z 1473206485

If you need the epoch format for the current date and time, use a Now card and drag and drop the date field from the Now card into the start field on the Epoch function card.

Related topics

Functions in Workflows

Elements of Workflows