You can view the current time with the command:
$ date
You can set the time with the command:
# date --set="22:55:00"
// sets the current time to 22:55:00
# date --set="01/20/2011"
// sets the date to 01/20/2011 and time to 00:00:00
# date --set="01/20/2011 22:55:00"
// sets the date to 01/20/2011 and time to 22:55:00
As you can see, the date is specified in the American-style month/day/year format
You can change the time zone with the command:
# dpkg-reconfigure tzdata
Comments