LinuxʹÓÃÊÀ½çʱ¼ä£¨GMT£©ºÍ±¾µØʱ¼ä£¨Local Time£©¡£ÊÀ½çʱ¼äÊǸñÁÖÄáÖÎʱ¼ä£¬±¾µØʱ¼äÊÇÓû§ËùÔÚʱÇøÓë¹ú¼Êʱ¼äµÄ²îÖµ¡£LinuxÓëWindowsÏà֮ͬ´¦ÊÇÔÚÿ´ÎÆô¶¯Ê±¼ÓÔØBIOSʱ¼ä£¬ÔÚÍ˳öʱ°Ñʱ¼äд»ØBIOS£»LinuxÓëWindows²»Í¬Ö®´¦ÊÇLinux°ÑÊÀ½çʱ¼ä£¨UTC£©×÷ΪBIOSʱ¼ä£¬±¾µØʱ¼ä(Local Time)ÊÇÓû§ËùÔÚʱÇøÓë¹ú¼Êʱ¼äµÄ²îÖµ£¬¶øwindowsÖÐÖ±½Ó°Ñ±¾µØʱ¼ä×÷ΪBIOSʱ¼ä¡£ÔÚ¶à²Ù×÷ϵͳ»·¾³ÏÂÕâÖÖ²»Í¬µÄʱ¼ä»úÖƽ«Ê¹Ê±¼äÎÞ·¨ÕýÈ·ÏÔʾ¡£½â¾öµÄ°ì·¨ÊDZà¼Îļþ/etc/default/rcS°ÑÆäÖеÄUTC£½yes¸ÄΪUTC=no£¬È»ºóÔÙÉèÖÃÕýÈ·µÄ±¾µØʱ¼ä¡£
LinuxÏÂÉèÖÃʱ¼ä£º
1¡¢Ê±¼äÉèÖãº
#±à¼Îļþ/etc/timezoneΪÒÔÏÂÄÚÈÝ£ºAsia/Shanghai
2¡¢date MMDDhhmmCCYY
É趨ϵͳʱ¼äºÍÓ²¼þʱ¼äΪMM/DD hh:mm, CCYY¡£
ÏÔʾʱ¼äΪ±¾µØʱ¼ä¶øÓ²¼þʱ¼äʹÓÃUTC¡£
Àý£ºÉèÖÃʱ¼äΪÏÂÎç14µã36·Ö¡£
# date -s 14:36:00
Àý£ºÉèÖÃʱ¼äΪ1999Äê11ÔÂ28ºÅ¡£
# date -s 991128
3¡¢# hwclock --utc --systohc
4¡¢# hwclock --show
beyondfly ÓÚ 2007-09-23 19:43:36·¢±í:
²»´í,:0L :0L :0L