Re: "Z" in setDateFormat ?

2023-07-22 Thread Roland King via Cocoa-dev
Yes

> On 22 Jul 2023, at 08:42, Gabriel Zachmann  wrote:
> 
> Thanks! ... and what is the meaning of the Z at the end of a date/time ?
> GMT+0:0 ?
> 
> Best regards, Gabriel
> 
> 
>> On 22. Jul 2023, at 12:25, Roland King  wrote:
>> 
>> It’s a literal. It’s quoted. So it prints “Z”
>> 
 On 22 Jul 2023, at 06:15, Gabriel Zachmann via Cocoa-dev 
  wrote:
>>> 
>>> In the Apple docs in chapter "Date Formatters" I found sample code that 
>>> contains this line:
>>> 
>>> [rfc3339DateFormatter setDateFormat:@"'-'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.
>>> 
>>> Best regards, Gabriel
>>> 
>>> ___
>>> 
>>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>> 
>>> 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:
>>> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
>>> 
>>> This email sent to r...@rols.org
> 
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: "Z" in setDateFormat ?

2023-07-22 Thread Gabriel Zachmann via Cocoa-dev
Thanks! ... and what is the meaning of the Z at the end of a date/time ?
GMT+0:0 ?

Best regards, Gabriel


> On 22. Jul 2023, at 12:25, Roland King  wrote:
>
> It’s a literal. It’s quoted. So it prints “Z”
>
>> On 22 Jul 2023, at 06:15, Gabriel Zachmann via Cocoa-dev 
>>  wrote:
>>
>> In the Apple docs in chapter "Date Formatters" I found sample code that 
>> contains this line:
>>
>> [rfc3339DateFormatter setDateFormat:@"'-'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.
>>
>> Best regards, Gabriel
>>
>> ___
>>
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
>>
>> This email sent to r...@rols.org



smime.p7s
Description: S/MIME cryptographic signature
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: "Z" in setDateFormat ?

2023-07-22 Thread Pascal Bourguignon via Cocoa-dev

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:@"'-'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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: "Z" in setDateFormat ?

2023-07-22 Thread Roland King via Cocoa-dev
It’s a literal. It’s quoted. So it prints “Z”

> On 22 Jul 2023, at 06:15, Gabriel Zachmann via Cocoa-dev 
>  wrote:
> 
> In the Apple docs in chapter "Date Formatters" I found sample code that 
> contains this line:
> 
>  [rfc3339DateFormatter setDateFormat:@"'-'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.
> 
> Best regards, Gabriel
> 
> ___
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
> 
> This email sent to r...@rols.org
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com