Date & Time
Category: Processing
Description: Retrieves the current date and time or parses a Unix timestamp into formatted text and individual calendar components (year, month, day, hour, minute, second, and day of week) in UTC or a specified IANA timezone.
info
If the Timezone input is left blank, UTC is used by default. You can provide any valid IANA timezone identifier such as 'Europe/London' or 'America/New_York'.
Related Modules
Current Time
Outputs the current timestamp, formatted date, and date/time components in the specified timezone (defaults to UTC).
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Timezone | text | false | Optional IANA timezone (e.g. 'UTC', 'Europe/London', 'America/New_York'). Defaults to 'UTC'. |
Outputs
| Name | Type | Description |
|---|---|---|
| Timestamp | number | The current Unix timestamp in seconds |
| Formatted Date | text | The date and time formatted as YYYY-MM-DD HH:mm:ss |
| Year | number | The four-digit year |
| Month | number | The month of the year (1-12) |
| Day | number | The day of the month (1-31) |
| Hour | number | The hour of the day in 24-hour format (0-23) |
| Minute | number | The minute of the hour (0-59) |
| Second | number | The second of the minute (0-59) |
| Day of Week | text | The full name of the day of the week (e.g. 'Monday') |
Output Event Triggers
| Name |
|---|
| Success |
| Error |
Parse Timestamp
Parses a Unix timestamp (in seconds or milliseconds) into a formatted date and individual components in the specified timezone.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Timestamp | number | true | The Unix timestamp to parse (in seconds or milliseconds) |
| Timezone | text | false | Optional IANA timezone (e.g. 'UTC', 'Europe/London', 'America/New_York'). Defaults to 'UTC'. |
Outputs
| Name | Type | Description |
|---|---|---|
| Formatted Date | text | The date and time formatted as YYYY-MM-DD HH:mm:ss |
| Year | number | The four-digit year |
| Month | number | The month of the year (1-12) |
| Day | number | The day of the month (1-31) |
| Hour | number | The hour of the day in 24-hour format (0-23) |
| Minute | number | The minute of the hour (0-59) |
| Second | number | The second of the minute (0-59) |
| Day of Week | text | The full name of the day of the week (e.g. 'Monday') |
Output Event Triggers
| Name |
|---|
| Success |
| Error |
Examples
Parse Unix timestamp in UTC
Inputs
-
Timestamp:
1704067200 -
Timezone:
"UTC"
Outputs
-
Formatted Date:
"2024-01-01 00:00:00" -
Year:
2024 -
Day of Week:
"Monday"