edricchan03/Get date/time
Gets the date and/or time that the action was executed at.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| date-format | A date format that the date command supports. (See http://tldp.org/LDP/abs/html/timedate.html for more info) | no | — |
| get-last-modified-file-path | The file path to get the last modified date and time. (Internally adds the `-r` option with the file name specified) | no | — |
| timezone | The timezone to be used for the date and time. (Internally specifes the TZ environment variable) | no | — |
| use-iso-8601-format | Whether to use the ISO 8601 date and time format. (Internally adds the `-I` option to the date command) (Only supported on the Linux version of date) | no | — |
| use-utc-timezone | Whether to use the UTC timezone. (Internally adds the `-u` option to the date command) | no | — |
| use-rfc-2822-format | Whether to use the RFC 2822 date and time format. (Internally adds the `-R` option to the date command) (Only supported on the UNIX version of date) | no | — |
| use-rfc-3339-format | Whether to use the RFC 3339 date and time format. (Internally adds the `-R` option to the date command) (Only supported on the Linux version of date) | no | — |
| use-rfc-5322-format | Whether to use the RFC 5322 date and time format. (Internally adds the `-R` option to the date command) (Only supported on the Linux version of date) | no | — |
Outputs
| name | description |
|---|---|
| date | The current date and time as a string. |