time

Converts an ISO8601 timestamp or OPC Relative time into another time format using time format tokens.

Input

{{ node.createdTime | time }}

Output

2021-06-01 10:50:00

Input

{{ "2021-06-01T10:50:00.000Z" | time }}

Output

2021-06-01 10:50:00

Here the input value is an OPC Relative time

Input

{{ "NOW" | time }}

Output

2021-07-18 14:30:00

Format

Format the output using time format tokens. The default format is YYYY-MM-DD HH:mm:ss.

Input

{{ node.createdTime | time: "DD MMMM YYYY" }}

Output

01 June 2021

Timezone and DST

Provide timezone for output in regional time. The default timezone is Etc/UTC.

Input

{{ "2021-01-01T01:50:00.000Z" | time: "YYYY-MM-DD HH:mm:ss", "Australia/Sydney" }}

Output

2021-01-01 12:50:00

The timezone will always be adjusted to DST (Daylight Savings Time) but this can be disabled to ensure a fixed UTC offset by including false as an additional option.

Input

{{ "2021-01-01T01:50:00.000Z" | time: "YYYY-MM-DD HH:mm:ss", "Australia/Sydney", false }}

Output

2021-01-01 11:50:00

Note

Reports will default to the Timezone and DST specified in its properties dialog.

PDF HTML Epub Powered by Read The Docs