linux: setting date and time
check current date and time with
date
Mon Jul 8 20:53:53 EDT 2013
set the date and time with
date 071321052013 (MMDDhhmmYYYY)
this example would set the date to july 13th 2013 (07 13 2013)
and the time to 9:05PM (21:05)
and finally to make the change persistent run
hwclock –systohc
source:
http://oreilly.com/openbook/debian/book/ch07_05.html