Skip to content

Instantly share code, notes, and snippets.

@X0nic
Last active December 12, 2015 09:59
Show Gist options
  • Save X0nic/4756254 to your computer and use it in GitHub Desktop.
Save X0nic/4756254 to your computer and use it in GitHub Desktop.
Time shifting
#you will most likely need to sudo these commands
#add 14 days
date -s "14 day"
#subtract 14 days
date -s "-14 day"
#set date to something specific
date -s "02/28/2013 08:24:14"
#get current date
date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment