convertTimeToEpoch
The convertTimeToEpoch task converts a date/timestamp to Epoch Time — the number of seconds (or milliseconds) elapsed since January 1, 1970 (midnight UTC/GMT).
Potential use case
Use this task when a workflow needs to provide an input timestamp to a downstream interface or system that requires Epoch Time format.
Properties
Example 1
In this example:
- The
inputTimevariable comes from thegetTimereference task. The reference variable istime. - The
EpochFormatis set toSeconds. - The output
epochTimewill be theinputTimevalue expressed in seconds since January 1, 1970.

Example 2
In this example:
- The
inputTimevariable comes from thegetTimereference task. The reference variable istime. - The
EpochFormatis set toMilliseconds. - The output
epochTimewill be theinputTimevalue expressed in milliseconds since January 1, 1970.

Manual reference variable entry
To enter the inputTime object manually, use the Year-Month-Date-Time format (yyyy-MM-dd 'T' HH:mm:ss.SSSZ):
This displays as: