Tuesday, March 28, 2006

linux tip: change date

last time when i want to change the date/time, i use date command with this option:
date MMDDhhmm

$ date
Mon Mar 27 17:41:37 CEST 2006
$ date 03271630
Mon Mar 27 16:30:00 CEST 2006
but i found an option which much more easier:
$ date
Mon Mar 27 16:30:15 CEST 2006
$ date -s "Mon Mar 27 17:45:15 CEST 2006"
Mon Mar 27 17:45:15 CEST 2006
just copy & paste the current date & edit it.

No comments: