centOS change month
Hi, any idea on how to change the month of my server,
the date -s command is need to change m/d/y h:m:s which I don't want to do. my server is centOS 6.. Thanks.. |
But the month can be changed with the same command as well.
You do one thing, put the same date and year while changing the month and just change the month according to your need. One of the examples for changing the date is as follows: Quote:
|
you can use this cmd date --set="STRING" or --reference=FILE
|
Quote:
Quote:
|
To set the date, you need to be root.
|
Quote:
|
Quote:
Quote:
|
It should be working.
[root@host1]# date Mon Jul 9 10:59:29 IST 2012 [root@host1]# date --set="5 JUL 2012 13:44:30" Thu Jul 5 13:44:30 IST 2012 [root@host1]# date Thu Jul 5 13:44:33 IST 2012 [root@bost1]# |
All times are GMT -5. The time now is 09:15 PM. |