Skip to content

Instantly share code, notes, and snippets.

@hamdyaea
Last active December 17, 2020 15:05
Show Gist options
  • Save hamdyaea/a50542f63d0d1cf74c2901c4f0ea6835 to your computer and use it in GitHub Desktop.
Save hamdyaea/a50542f63d0d1cf74c2901c4f0ea6835 to your computer and use it in GitHub Desktop.
mytime=$(date -r flag-17-12-2020.flag +%s)
mytime2=$(date +$mytime -d "-5 min")
mytime3=$(date -u -d @${mytime2} +"%Y-%m-%d %H:%M:%S")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment