htpdate能浏览网页就能同步时间
看看同步时间的效果(默认只查询服务器时间,不修改本地时间):
# htpdate -d www.wenzk.com
burst: 1 try: 1 when: 500000
www.wenzk.com 02 Sep 2010 06:13:47 GMT (0.491) => 0
#: 1 mean: 0 average: 0.000
Timezone: GMT+8 (CST,CDT)
No time correction needed
只要能看网页(通过代理也行),就可以与相应的服务器同步时间,建议选择大网站作为同步源,小网站服务器本身的时间未必是准确的。程序相关信息:
htpdate.i386 : HTTP based time synchronization tool
Repo : rpmforge
Matched from:
Description : The HTTP Time Protocol (HTP) is used to synchronize a computer’s
: time with web servers as reference time source. Htpdate will
: synchronize your computer’s time by extracting timestamps from
: HTTP headers found in web servers responses. Htpdate can be
: used as a daemon, to keep your computer synchronized.
:
: Accuracy of htpdate is usually better than 0.5 seconds (even
: better with multiple servers). If this is not good enough for you,
: try the ntpd package.