Skip to content

Instantly share code, notes, and snippets.

@sdoro
Created November 2, 2012 15:55
Show Gist options
  • Save sdoro/4002209 to your computer and use it in GitHub Desktop.
Save sdoro/4002209 to your computer and use it in GitHub Desktop.
How can you calculate the number of days since 1/1/1970?
echo $((`date --utc --date "$1" +%s`/86400))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment