This page provides a comprehensive reference for utilities - datetime available in the workflow automation actions catalog. These actions enable you to date and time utilities.
Convert an epoch to date/time
This action is used to transform from epoch timestamp to date/time. Possible references:
- https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
- https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html#SHORT_IDS
Refer fromEpoch for more information.
Input | Optionality | Type | Description |
|---|---|---|---|
timestamp | Required | Int | An integer representing epoch timestamp. Note: UNIX epochs are the number of seconds after 1st Jan 1970, midnight UTC (00:00) |
timestampUnit | Optional | string | A string representing unit of provided timestamp. Acceptable values: |
timezoneId | Optional | String | A string representing timezone for desired date/time, default: UTC For more information on supported zoneIds refer: ZoneId (Java Platform SE 8 ) |
pattern | Optional | String | A string representing pattern for desired datetime, default: For more information on supported patterns refer: DateTimeFormatter (Java Platform SE 8 ) |
selectors | Optional | List | The selectors to get the only specified parameters as output. |
Field | Optionality | Datatype | Description |
|---|---|---|---|
date | Required | String | A string representation of date. |
time | Required | String | A string representation of time. |
datetime | Required | String | A string representation of datetime. |
timezone | Required | Map | A map representation of timezoneId and abbreviation. |
success | Boolean | Status of the request | |
errorMessage | String | Failure reason as message |
Example | Workflow Input | Outputs |
|---|---|---|
| | |