Re: "Z" in setDateFormat ?
Re: "Z" in setDateFormat ?
- Subject: Re: "Z" in setDateFormat ?
- From: Roland King via Cocoa-dev <email@hidden>
- Date: Sat, 22 Jul 2023 06:25:55 -0400
- Arc-authentication-results: i=1; rspamd-6879cb8ddb-5c45j; auth=pass smtp.auth=dreamhost smtp.mailfrom=email@hidden
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1690021572; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ZWXeTQVdq4zUR3gHZFu1AXVUPPL6V9Pk/96cGjEq9YY=; b=hS5n+dVp8uWHk0miS4uq4o6Htj5hc4p+lUspVhX/Vv3QJZ3vPeVCo0CctZKFUFsxWRFkE2 liPExoMOrrO8/5QDR2vnsYtQaLSR8ltb3Xgmi224rjh6Kz3SKtKinVwPIWtZqU+vyTf9gZ 8aQQjF3xycW91MTL9qonmjgAsUzeszaoLC3fnuPVZvSHVPc7wkAQ+9vzzTI5jzxmabjldV l5WuKHfX01dlHIVYlLj3pKP+7wIbaAHAW6Wgb3rSVW9i/hLX0mnYHlALLFLQRT7eRXjSjk lTT1L77GT6Mieb+1uxRoOCqXkkBZOMXlmQuPLVm+dCOiaij8wsYE+BPMFrfS+Q==
- Arc-seal: i=1; s=arc-2022; d=mailchannels.net; t=1690021572; a=rsa-sha256; cv=none; b=XoHJsgf3LQudL5W9sNDKAIw7U/oQXeomLkl3GX6jE2nJq1vWw85jVgS2kwN7lXmOew92Zo zDG/V2kdc8m/CXVQ2uj+zOt3UkV4o580mEe4/00xMvy66C9Pynm4H50sl35+GUiBhj6Dh1 FhnrTLNaGlYZ5sP0LUeXkNEvjRnOcWFxIK9467N/SOSuTP3WKRldi7srBW/M5WcX0gk0zH K+mSFMZdlDqgetmPyHLKq13fpqSkKW9iORVD7zqxJEj8ylmEQyOh7e9x43UgoqAhz17HPr rEUZSooU7/ZB+VeVctIadSoTCKzFxuS1fjm6VoL95JRg/Ff1B/DISLY38m7eUw==
It’s a literal. It’s quoted. So it prints “Z”
> On 22 Jul 2023, at 06:15, Gabriel Zachmann via Cocoa-dev
> <email@hidden> wrote:
>
> 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.
>
> Best regards, Gabriel
>
> _______________________________________________
>
> 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
_______________________________________________
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