The convertTimeToEpoch task converts a date/timestamp to Epoch Time — the number of seconds (or milliseconds) elapsed since January 1, 1970 (midnight UTC/GMT).
Use this task when a workflow needs to provide an input timestamp to a downstream interface or system that requires Epoch Time format.
In this example:
inputTime variable comes from the getTime reference task. The reference variable is time.EpochFormat is set to Seconds.epochTime will be the inputTime value expressed in seconds since January 1, 1970.
In this example:
inputTime variable comes from the getTime reference task. The reference variable is time.EpochFormat is set to Milliseconds.epochTime will be the inputTime value expressed in milliseconds since January 1, 1970.
To enter the inputTime object manually, use the Year-Month-Date-Time format (yyyy-MM-dd 'T' HH:mm:ss.SSSZ):
This displays as: