• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Representing UTC time in a readable format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Representing UTC time in a readable format
      • From: Malte Tancred <email@hidden>
    • Re: Representing UTC time in a readable format
      • From: Creed Erickson <email@hidden>
    • Re: Representing UTC time in a readable format
      • From: Malte Tancred <email@hidden>
References: 
 >Representing UTC time in a readable format (From: Jeremy Dronfield <email@hidden>)
 >Re: Representing UTC time in a readable format (From: j o a r <email@hidden>)
 >Re: Representing UTC time in a readable format (From: Jeremy Dronfield <email@hidden>)
 >Re: Representing UTC time in a readable format (From: Malte Tancred <email@hidden>)
 >Re: Representing UTC time in a readable format (From: Jeremy Dronfield <email@hidden>)
 >Re: Representing UTC time in a readable format (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Changing an NSImageView's NSImage
  • Next by Date: Re: Changing an NSImageView's NSImage
  • Previous by thread: Re: Representing UTC time in a readable format
  • Next by thread: Re: Representing UTC time in a readable format
  • Index(es):
    • Date
    • Thread