Skip to content

Instantly share code, notes, and snippets.

@seventhskye
Created September 3, 2015 14:58
Show Gist options
  • Save seventhskye/7d9daeb8dc1b644e6241 to your computer and use it in GitHub Desktop.
Save seventhskye/7d9daeb8dc1b644e6241 to your computer and use it in GitHub Desktop.
ISO 8601 UTC compliant Unix datetime stamp format
#!/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