It is really simple to change the Date and Time of your Linux system using the date command.
$ date {mmddhhmiyyyy.ss}
where
- mm = Desired Month
- dd = Desired Date
- hh = Hour
- mi = minutes
- yyyy = Year
- ss = Seconds
Lets look at one example,To set date as May 1st 2012, 10:10 p.m, 40 seconds
$ date 050122102012.40
If above command looks too complex then you can use the following commands also
$ date -s "05/01/2012 22:10:40"
$ date -s "01 MAY 2012 22:10:40"
$ date set="01 JAN 2012 22:10:40"
You may want to set the time only In that case you can use these two commands
$ date +{71b550cbed0aca3fea2335d26076176dc834a5ad6e765af844b2cea64fe7483b}T -s "22:10:40"
$ date +{71b550cbed0aca3fea2335d26076176dc834a5ad6e765af844b2cea64fe7483b}T{71b550cbed0aca3fea2335d26076176dc834a5ad6e765af844b2cea64fe7483b}p -s "10:10:40PM"
I hope these commands will help you a lot.