Created
September 3, 2015 14:58
-
-
Save seventhskye/7d9daeb8dc1b644e6241 to your computer and use it in GitHub Desktop.
ISO 8601 UTC compliant Unix datetime stamp format
This file contains 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
#!/bin/bash | |
# This script generates test logs with a UTC ISO 8601 | |
# compliant timestamp | |
# http://www.iso.org/iso/home/standards/iso8601.htm, | |
# https://en.wikipedia.org/wiki/ISO_8601 | |
while true | |
do | |
date -u +%Y-%m-%dT%H:%M:%S%z | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment