Re: Representing UTC time in a readable format
Re: Representing UTC time in a readable format
- Subject: Re: Representing UTC time in a readable format
- From: Jeremy Dronfield <email@hidden>
- Date: Fri, 4 Jun 2004 19:23:16 +0100
On 4 Jun 2004, at 6:14 pm, Andreas Mayer wrote:
Something like @"%Y-%m-%d %H:%M:%SZ" should be correct for UTC:
2004-06-04 16:30:24Z
But then, as Malte pointed out, does NSDate handle leap-seconds or the
difference between UTC and "official" time? As in:
1997-06-30 23:59:59 UTC = 1997-07-01 00:00:29 TAI
1997-06-30 23:59:60 UTC = 1997-07-01 00:00:30 TAI (Example from
http://cr.yp.to/proto/utctai.html)
Not as far as I know.
I don't think "UTC" an official designator. Look at ISO 8601 which
Creed mentioned before.
Well, no. Nor is UTC time "official time" (official time being based on
TAI, or atomic time). "####-##-## UTC" is commonly used, however (see
the above example).
All of which is academic, however, since all I'm asking for is guidance
on how to turn the value returned by the Carbon function GetUTCDateTime
into a readable date.
Regards,
-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.