• 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: "Z" in setDateFormat ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Z" in setDateFormat ?


  • Subject: Re: "Z" in setDateFormat ?
  • From: Pascal Bourguignon via Cocoa-dev <email@hidden>
  • Date: Sat, 22 Jul 2023 13:02:14 +0200

Le 22/07/2023 à 12:15, Gabriel Zachmann via Cocoa-dev a écrit :
In the Apple docs in chapter "Date Formatters" I found sample code that
contains this line:

   [rfc3339DateFormatter setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ss'Z'"];

Now, my very specific question is: what does the 'Z' do?
And where would I find the doc about it? (and potential other letters?)
My guess would be it has something to do with the 'Z'/time offset mentioned in
RFC 3339, but it is unclear to me exactly what is meant here.

This comes from the ISO-8601 standard for date formats. Z is a timezone indication: zulu = UTC.

https://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators

--
__Pascal Bourguignon__

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >"Z" in setDateFormat ? (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: "Z" in setDateFormat ?
  • Next by Date: Re: "Z" in setDateFormat ?
  • Previous by thread: Re: "Z" in setDateFormat ?
  • Next by thread: Substitute for kill(2)?
  • Index(es):
    • Date
    • Thread