Skip to content

Instantly share code, notes, and snippets.

@emjayoh
Created October 10, 2021 22:41
Show Gist options
  • Select an option

  • Save emjayoh/0bfb0af78e7837f3ccb834072fcca577 to your computer and use it in GitHub Desktop.

Select an option

Save emjayoh/0bfb0af78e7837f3ccb834072fcca577 to your computer and use it in GitHub Desktop.
datediff
echo $(( ($(date --date="031122" +%s) - $(date --date="021020" +%s) )/(60*60*24) ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment