Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:26
Show Gist options
  • Select an option

  • Save dacr/064af76be6251cbb1b058f959a0ce667 to your computer and use it in GitHub Desktop.

Select an option

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/27f3f0ed942447b0be55864b0dc64e3d7fb7aa42
## summary : Generates an iso8601 timestamp.
## keywords : bash, date, iso8601, @testable
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## 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