Re: Obtaining current date from time.apple.com
Re: Obtaining current date from time.apple.com
- Subject: Re: Obtaining current date from time.apple.com
- From: "John C. Randolph" <email@hidden>
- Date: Wed, 13 Apr 2005 15:12:01 -0700
On Apr 13, 2005, at 11:57 AM, M. Carlson wrote:
[NSDate date] returns only the current system time. I would like to
access an NTP server such as time.apple.com to obtain the current
time. What is the Cocoa way to do this?
Ordinarily, you'd have the system prefs set to synchronize with an
NTP server. If you want to do it manually, you can look up the RFC's
for the NTP protocol, and use NSStream to talk to the host of your
choice.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden