Skip to content

Instantly share code, notes, and snippets.

@tonejito
Created November 7, 2017 18:58
Show Gist options
  • Save tonejito/11a91bdd643adda236d72e281ba6e05c to your computer and use it in GitHub Desktop.
Save tonejito/11a91bdd643adda236d72e281ba6e05c to your computer and use it in GitHub Desktop.
Some date formats
#!/bin/bash -x
# = ^ . ^ =
DATE=/bin/date
TIMESPEC=seconds
${DATE}
${DATE} --rfc-2822
${DATE} --iso-8601=${TIMESPEC}
${DATE} --rfc-3339=${TIMESPEC}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment