FreeBSD set date and time
类型:【转载】
原文作者:【FreeBSD】
日期:【March 5, 2009】
原文地址:https://www.cyberciti.biz/faq/howto-set-date-and-time-timezone-in-freebsd/
Only the superuser or root user may set the date under FreeBSD. General format of date command is as follows:date yymmddhhmmss
Where,
- yy : Year in two digit
- mm : Month (1-12)
- dd : Day (1-31)
- hh : Hours (0..23)
- mm : Minutes (0..59)
- ss : Seconds (0..61)
For example following command set date to 12-Jan-2004, 4:27 PM (remember you must be a root user to set date and time)# date 0401121627
Output:
Mon Jan 12 16:27:00 IST 2004
FreeBSD Set Time Without Modifying The Date
Type the following command to sets the time to 4:30 PM:# date 1630