Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Synchronizing your computer clock to an atomic clock

created by Rancid_Pickle

(idea) by Rancid_Pickle (5 d) (print)   ?   (I like it!) 1 C! Fri Jul 13 2001 at 16:16:36

I just replaced the BIOS battery on my server, and was stuck with 1999 as the year. I could have just set the time and date manually, but I prefer accuracy since I also use that clock for Ham Radio work.

After digging around on Google for ideas, I ran across this URL:

http://www.boulder.nist.gov/timefreq/

which is run by the US Government out of Boulder, Colorado. That's where they have the NIST atomic clock and from where they broadcast WWV radio signals.

If you're running Win95 and above, they have a freeware program for automatically synchronizing your clock. It worked on a WinME box, as well as WinNT 4, Win2000 Advanced Server, and Win95osr2 computers.

If you're from the "Do it myself so I know what's going on" school of thought, they have listings off of that page with IP addresses for time servers all over the world. Also available are interesting Adobe Acrobat PDF files for time synchronization.


(idea) by Stavr0 (3.2 d) (print)   ?   (I like it!) 1 C! Fri Jul 13 2001 at 16:37:44

HOWTO For Windows NT 4

Windows 2000 now includes a built-in time service which is similar to TimeServ.

Time Server is a service for NT which is available on the Windows NT Resource Kit CD. It consists of TIMESERV.EXE, TIMESERV.DLL and TIMESERV.INI.

Installation
To install the service, simply copy the EXE and DLL files into the \WINNT\SYSTEM32 directory and run TIMESERV -AUTOMATIC (if you want to register the service and have it start automatically after each reboot) or TIMESERV -MANUAL (if you want to register the service but have it started manually).

Configuration To configure the time server, you must edit the INI file TIMESERV.INI in the WINNT (not SYSTEM32!) directory. It is currently setup for use on a secondary time server, meaning that it gets its time from another computer but does not provide that time to any other computer.

There are many parameters in the INI file. The most important ones are:

  • Type - The type of time server that this computer is (usually SECONDARY);
  • PrimarySource - The computer which is the time server source for this computer;
  • Period - the number of times during a day that this computer should synchronize its time with the PrimarySource computer. If this value is 24, the time will be synchronized every hour. (NOTE: the time is synchronized only if the clocks differ by 0.5 seconds or more).
  • Timesource - set to no if this computer is not a time server source for other computers (for Type=SECONDARY). Set to yes if this computer is a source for other computers (for Type=PRIMARY or Type=MASTER).
  • Log - set to yes if this computer should write to the NT Event Log every time that it checks its time with its PrimarySource (whether or not its clock was adjusted). Set to no if this logging is not desired.

Other parameters can be left as is. Now that the INI file has been configured correctly, you must update the service to use the new configuration.

Updating the Configuration
Once the time server's INI file has been configured correctly, you will have to update the time server service to now use the new configuration. To do this, first stop the Time Server service using the Service Control Manager in the Control Panel. Once it is stopped, run TIMESERV -UPDATE from the Start|Run facility. After this is completed, just restart the Time Server service and, voila, your service is configured.

If you requested logging, you can now check the Event Viewer to ensure that the first synchronization succeeded. If no error message is given, your Time Server is now operational.

Full details at http://www.niceties.com/timeserv.htm


(idea) by instantkarma (3.7 y) (print)   ?   (I like it!) 1 C! Sat Jul 14 2001 at 0:36:48

Mac OS

Step One
Go to Apple Menu > Control Panels > Date & Time. Make sure that the Time Zone is set correctly for a major city in your Time Zone. Since this is a setting you must choose the first time you ever turn on your Mac, or at the first boot up following an OS install, odds are good it will still be correct. Check the date too: If the year reads 1956, you have a very old Mac and the clock battery is likely dead and needs to be replaced. Regardless, set the date correctly.

Step Two for Mac OS 8.5 or later:
Make sure the box marked "Use a Network Time Server" is checked. If it isn't, check it. Close the "Date & Time" Control Panel. Now you're done.

Step Two for earlier versions of Mac OS:
Close the "Date & Time" Control Panel. Get on the Internet and download NetChronometer from http://www.kezner.net/netchrono.html and run the Installer application. Reboot. Open the NetChronometer Control Panel and make sure "Use Internet Time Server" is checked and that the other settings are as you want them, and close the Control Panel. Now you're done. You will probably want to pay Jeremy his $7.

Mac OS X

10.2 "Jaguar" or earlier
Go to Apple Menu > System Preferences > Date & Time. Select the Network Time tab and make sure the service is running (or click Start if it isn't). Check Manually Configure and enter an NTP server in the box. (There is no list to pick from like in Mac OS. For a source of NTP servers, see below.) Close the window. Now you're done. Thanks to ccunning for his contribution.

10.3 "Panther" or later
Go to Apple Menu > System Preferences > Date & Time. Under the primary tab, with the rather redundant name "Date & Time", check the box at the top of the page next to "Set date & time automatically". You may optionally select the Apple time server closest to your geographical location, or manually enter the NTP server address of your choice in the drop down box/menu to the right. Could this be any easier? Probably not.

Useful Tips
martin points out that it's usually a good idea to choose a network time server that is geographically close - or few traceroute hops away from your own computer. And you know, he's right! I myself do not use Apple's own time server. martin adds that an accurate listing of network time servers can be found here: http://www.eecis.udel.edu/~mills/ntp/servers.htm


(idea) by pokey (8 mon) (print)   ?   (I like it!) Sat Jul 14 2001 at 0:59:07

HOWTO for most Linux distributions


Requires: As root, type the following at a shell:
ntpdate time-a.nist.gov
hwclock --systohc
...and all will be right with the world. Assuming your time zones aren't all screwed up.

ntpdate is part of the ntp suite for networked time synchronization available at www.ntp.org.
XCthulu: Yes, xntpd will keep your computer's clock closer to Boulder's clock. It can get time via GPS, WWV, dial-up, and the government mind control ray broadcasting service. xntpd will wash your windows and empty the kitty litter. xntpd is a daemon, and like most networking daemons must be properly configured to avoid a security hole. It also has a proud history of remote exploits. ntpdate isn't nearly as slick, and it doesn't understand four day simultaneous time, but it will set your clock to a more reasonable approximation of the current time as most people need without any potential of future security problems.

(idea) by XCthulhu (1.3 y) (print)   ?   (I like it!) Mon Jul 16 2001 at 1:52:39

Oh, come on pokey, it is a bit more complex then that!

HOWTO for most Linux distributions (Revised)

There are two ways to go about setting up ntp to sync your clock to atomic clock time. The first and foremost, though, is manually, as pokey has explained.

Commands:

  • ntpdate
  • hwclock

And to sync the clock by hand, login as root, type the following at a shell:

$ ntpdate time-a.nist.gov $ hwclock --systohc

Now these commands are all well and good to sync your computer's clock after it's been off for 5 months or so and it's clock is pretty dead, but the other operating systems do not force you to have to set your clock time manually, and neither should you have to. For mission critical time calculations, such as for calculating sattelite uplink speed, you must have both the times set to Atomic clock time. The Sattelite, will, of course use GPS time stamping, and the ground, will run xntpd.

Usage:
  /etc/init.d/xntpd {start|stop|restart|status}

This is a daemon controller that can be set under chkconfig, by running the following as root:
$ chkconfig --add xntpd

Finally, add the ntp servers of your choice from the list panamaus lists above to /etc/ntp/step-tickers.

Here's an example from my machine:

216.27.139.69
time.mit.edu


Enjoy!

(idea) by generic-man (4.8 mon) (print)   ?   (I like it!) Sun Dec 02 2001 at 16:38:16

HOWTO for Windows XP

  1. Double-click the clock in the system notification area (also known as the system tray).
  2. Click the "Internet Time" tab in the Date & Time Properties dialog box.
  3. Check "Automatically synchronize with an Internet time server," if it is not already checked.
  4. Choose a server from the drop-down list, or type one that you know yourself.
  5. Click Update Now to test the setting.
  6. If it worked, good. Your clock will synchronize once a week automatically when connected to the Internet. If not, try a different server.

This should work with all NTP time servers; I've tried a few, and settled on one that's on my LAN for maximum speed. The default server is "time.microsoft.com." It is worth noting that Microsoft has set this to enabled by default as they mandate product activation within the first 30 days after you boot Windows XP.


printable version
chaos

A toy for E2 Content Editors Restrictions on the Ark of the Covenant timecube NTP
Orbital mind control lasers TARDIS ham radio WWVH
Win32 system tray icon freeware Time zone Windows Product Activation
atomic clock NIST Internet Time How to display the second hand on a digital clock radio
Running two connections down one piece of Cat-5 Chronometer Apple Menu Mac OS X
Google Pages of Cool for July 2001 Boulder, Colorado Standard time stations
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help


cooled by donfreenut

Cool Staff Picks
Little presents from the Node Fairy:
Fred Rogers
People shouldn't swallow rocks
Nate on the Voting/Experience System
Rome
Cashmere
Howlin' Wolf
Los Alamos National Laboratory
Barbed wire
The Guru got a girlfriend
Chili
analytic/synthetic distinction
Aqua Teen Hunger Force
Welcome to the Involuntary Agnostics Association
New Writeups
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
Clarke
Multiculturalism(idea)
aneurin
Earl of Landaff(person)
E2 is a by-product of the existence of The Everything Development Company