Skip to content

Get Timestamp Action

Actions
Get the time in the specified time zone
v2.0
Latest
Star (19)

Get Time Action

Get the time in the specified time zone

Example usage

steps:
  - name: Get Time
    id: time
    uses: nanzm/get-time-action@master
    with:
      timeZone: UTC+8
      format: 'YYYY-MM-DD-HH-mm-ss'
  - name: Usage
    env:
      TIME: "${{ steps.time.outputs.time }}"
    run: |
      echo $TIME

Inputs

Parameter Required Info
timeZone false time Zone Default: UTC
format false timestamp format string Default:

Outputs

Parameter Info
time time in the specified time zone

License

MIT

Get Timestamp Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Get the time in the specified time zone
v2.0
Latest

Get Timestamp Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.