The getTime task obtains a current timestamp for use in other tasks in a workflow. An offset may be applied to the current timestamp if needed. The getTime task uses UTC for time representation.
Use this task to post the current time in a logfile or external database when an automation starts or completes. Using an offsetDuration, you can also use this task to provide a future timestamp calculated from the current time.
When using object literal notation in offsetDuration, you must include the curly braces. See the moment.js documentation for more information.
In this example:
Timezone is UTC −04:00 (North American Eastern Time).offsetDuration adds seven days and one month.format is LLLL (month name, day of month, day of week, year, time).time value is presented in LLLL format.
In this example:
Timezone is UTC −04:00 (North American Eastern Time).offsetDuration is 86400000 milliseconds (one day).format is MMM-DD-YYYY (month-day-full year).time value is presented in MMM-DD-YYYY format.
In this example:
Timezone is UTC −04:00 (North American Eastern Time).offsetDuration adds four hours.format is hh:mm:ss (hours:minutes:seconds).time value is presented in hh:mm:ss format.