Skip to content

Instantly share code, notes, and snippets.

@takurx
Created May 24, 2020 05:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takurx/387587a49892a9bf73159a506c96c9d7 to your computer and use it in GitHub Desktop.
Save takurx/387587a49892a9bf73159a506c96c9d7 to your computer and use it in GitHub Desktop.
about date command format

1 and 2 is equivalent.

  • 1
sharo@kirima:~$ date "+%Y-%m-%dT%H:%M:%S%:z"
2020-05-24T14:38:26+09:00
  • 2
sharo@kirima:~$ date --iso-8601='seconds'
2020-05-24T14:38:31+09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment