time.parse

The time.parse trigger action parses the string representation of a date and time and returns the date/time value it represents.

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 parsed.
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: Feb 3, 2013 at 7:54pm (PST) and Format: Jan 2, 2006 at 3:04pm (MST)

Trigger action output: 2013-02-03 19:54:00 +0000 PST