The Following 4 Users Say Thank You to TA-t3 For This Useful Post: | ||
|
2007-10-31
, 06:17
|
|
Posts: 739 |
Thanked: 242 times |
Joined on Sep 2007
@ Montreal
|
#2
|
|
2007-10-31
, 10:37
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#3
|
|
2010-01-07
, 13:15
|
Posts: 232 |
Thanked: 32 times |
Joined on Jul 2009
@ Idaho
|
#4
|
/home/user # rdate -v -n -c time.nist.gov
Warning: error reading tzfile. You will NOT be
able to get legal time or posix compliance!
Thu Jan 7 06:10:02 MST 2010
rdate: adjust local clock by 0.011705 seconds
/home/user #
|
2010-01-07
, 13:42
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#5
|
|
2010-01-08
, 12:58
|
Posts: 232 |
Thanked: 32 times |
Joined on Jul 2009
@ Idaho
|
#6
|
/home/user # rdate -c time-b.nist.gov
Warning: error reading tzfile. You will NOT be
able to get legal time or posix compliance!
Fri Jan 8 06:02:19 MST 2010
/home/user #
|
2010-01-08
, 15:15
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#7
|
|
2010-05-10
, 06:20
|
Posts: 11 |
Thanked: 0 times |
Joined on May 2010
|
#8
|
|
2010-05-10
, 14:49
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#9
|
It works similar to e.g 'ntpdate', although they don't always work against the same computers.
>rdate -p -v -n time.nist.gov
Tue Oct 30 17:59:39 MET 2007
rdate: adjust local clock by 2.046977 seconds
>rdate -p -v time-b.timefreq.bldrdoc.gov
Tue Oct 30 18:00:56 MET 2007
rdate: adjust local clock by 2 seconds
The above "-p print only" commands can be run as user. To set the clock (i.e. running without -p or with -s) you need to be root.
Note that time.nist.gov appears to support only SNTP (thus the -n), while the other one supports RFC868. (If you look at nist's website you should find a whole bunch of other reference time servers).
Very often you can also get rdate working against a local computer in your network if that one's got correct time by other means. Particularly if that computer happens to be a Unix- or Linux computer:
>rdate local-computer.your.net
The above example output was from my desktop computer. When I did the same on the N800 it was only 3 seconds off.. and I haven't adjusted the time in weeks, possibly months (I set it manually, but accurately at the time). So the N800 clock seems to be _very_ accurate, unless I got lucky for some reason. But this means that you won't have to constantly monitor and set the N800 clock, which means that it's not a problem that there's no 'cron' on the N800, and it also means that there's not much point in installing the whole 'ntp' suite, for example.
Where to find it:
http://www.box.net/shared/zaj5id7dau
(click the link and you'll see the .deb, together with some other stuff.)
Note that box.net's server doesn't set the necessary Content-Type, so if you use the N800 browser it won't automatically understand that it can be installed. You'll have to download it first.
But, as this program is _really tiny_ I'll attach it here as well: The .deb is 9KB while the installed program is only 16KB.
TA-T3
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.