josstorer/Get Current Time
Get the current time with `format`, `utcOffset` and `timezone`
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| format | Time format to use - using [MomentJS format syntax](https://momentjs.com/docs/#/displaying/format/) | no | — |
| utcOffset | UTC offset to use - using [MomentJS utcOffset syntax](https://momentjs.com/docs/#/manipulating/utc-offset/) | no | — |
| timezone | Timezone to use - using [moment-timezone list](https://gist.github.com/diogocapela/12c6617fc87607d11fd62d2a4f42b02a) (overrides utcOffset) | no | — |
Outputs
| name | description |
|---|---|
| time | The ISO time this action was run, **not** affected by the parameter `utcOffset` e.g. '2020-01-01T00:30:15.000Z' |
| ISOTime | Same as `time` |
| readableTime | Human-friendly time - affected by the parameter `utcOffset` e.g. 'Wed Jan 01 2020 08:30:15 GMT+0800' |
| formattedTime | The time this action was run - formatted using `format` and `utcOffset` inputs |
| year,month,day,hour,minute,second,millisecond | Digital outputs, just as names |