Last active
April 2, 2023 10:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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