Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/064af76be6251cbb1b058f959a0ce667 to your computer and use it in GitHub Desktop.
Save dacr/064af76be6251cbb1b058f959a0ce667 to your computer and use it in GitHub Desktop.
Generates an iso8601 timestamp. / published by https://github.com/dacr/code-examples-manager #c5fde045-d89d-45de-99ff-8b0e069595d4/be9465d2853065bf656a352de0990747a8e6d4b1
## summary : Generates an iso8601 timestamp.
## keywords : bash, date, iso8601, @testable
## publish : gist
## authors : David Crosson
## license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
## id : c5fde045-d89d-45de-99ff-8b0e069595d4
## created-on : 2019-08-14T16:43:09+02:00
## managed-by : https://github.com/dacr/code-examples-manager
## run-with : sh $file
date -Is # not GMT
date -u +"%Y-%m-%dT%H:%M:%SZ"
date -u +"%Y-%m-%dT%H:%M:%S.%3NZ"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment