time.format

The time.format trigger action accepts a timestamp value and converts it to format specified.

Action

This trigger action is found under the Time heading.

Canvas

When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.

The left routing point (red) is the failure route. This route will be taken if there is an error during execution.

The right routing point (green) is the success route. This route will be taken if action executes successfully.

Form

Parameters

Name Type Required Descriptions
Timestamp String  Yes The timestamp that needs to be formatted according to the $(time.now) format (2006-01-02T15:04:05.999999999Z)
Format String Yes

The Format defines the input format by showing how the reference time, defined to be. The following lists some of the recognizable formats:

Formats Type
"Mon Jan _2 15:04:05 2006" ANSIC
"Mon Jan _2 15:04:05 MST 2006" UnixDate
"Mon Jan 02 15:04:05 -0700 2006" RubyDate
"02 Jan 06 15:04 MST" RFC822
"02 Jan 06 15:04 -0700" RFC822Z (RFC822 with numeric zone)
"Monday, 02-Jan-06 15:04:05 MST" RFC850
"Mon, 02 Jan 2006 15:04:05 MST" RFC1123
"Mon, 02 Jan 2006 15:04:05 -0700" RFC1123Z (RFC1123 with numeric zone)
"2006-01-02T15:04:05Z07:00" RFC3339
"2006-01-02T15:04:05.999999999Z07:00" RFC3339Nano

For example: While defining the time.parse action use the Formats not the Type

Timestamp: 2021-10-14T12:31:30.601Z and Format: Mon, 02 Jan 2006 15:04:05 MST

Trigger action output: Thu, 14 Oct 2021 12:31:30 UTC