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 | Type | Description |
|---|---|---|
timestamp | Int | Required. An integer representing epoch timestamp. Note: UNIX epochs are the number of seconds after 1st Jan 1970, midnight UTC (00:00) |
timestampUnit | string | Optional. A string representing unit of provided timestamp. Acceptable values: |
timezoneId | String | Optional. A string representing timezone for desired date/time, default: UTC For more information on supported zoneIds refer: ZoneId (Java Platform SE 8 ) |
pattern | String | Optional. A string representing pattern for desired datetime, default: For more information on supported patterns refer: DateTimeFormatter (Java Platform SE 8 ) |
selectors | List | Optional. The selectors to get the only specified parameters as output. |
Field | Datatype | Description | |
|---|---|---|---|
date | String | Required. A string representation of date. | |
time | String | Required. A string representation of time. | |
datetime | String | Required. A string representation of datetime. | |
timezone | Map | Required. A map representation of timezoneId and abbreviation. | |
success | Boolean | Status of the request | |
errorMessage | String | Failure reason as message |
Example | Workflow Input | Outputs |
|---|---|---|
| | |