time server via terminal command line?

Just as one can obtain their external WAN IP address by using curl -s http://checkip.dyndns.org (or other similar websites), is there an equally cool command to retrieve date/time from an ntp server such as time-a.timefreq.bldrdoc.gov, that anyone knows about?

TIA

2001 Quicksilver G4 (M8360LL/A), Mac OS X (10.4.8)

Posted on Nov 10, 2006 9:44 AM

Reply
4 replies

Nov 10, 2006 11:52 AM in response to j.v.

-u instructs ntpdate to use an unprivileged port and shouldn't be necessary in most instances.

That said, by design ntpdate won't make major corrections to the system time other than during boot time due to the fact that big time jumps can often screw up running applications.

Also, there shouldn't be any need to run this manually. You can use System Preferences -> Date & Time to tell the OS to sync with a remote time server. This activates the ntp daemon to correct your clock and keep it in sync.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

time server via terminal command line?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.