Skip to content

Instantly share code, notes, and snippets.

@dragolabs
Last active July 19, 2017 17:38
Show Gist options
  • Save dragolabs/e695b01c85a131a2537e to your computer and use it in GitHub Desktop.
Save dragolabs/e695b01c85a131a2537e to your computer and use it in GitHub Desktop.
date formats

Some formats for date command

  • 140702 - date +%y%m%d
  • 20140702 - date +%Y%m%d
  • 20140702155934 - date +%Y%m%d%H%M%S
  • 2014.07.02 - date +%Y.%m.%d
  • 2014-07-02 - date +%F
  • 1404313240 - date +%s [seconds since 1970-01-01 00:00:00 UTC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment