Re: Lists to XML ?
Re: Lists to XML ?
- Subject: Re: Lists to XML ?
- From: Shane Stanley <email@hidden>
- Date: Tue, 28 Mar 2017 14:21:58 +1100
On 28 Mar 2017, at 12:26 pm, Jean-Christophe Helary <email@hidden> wrote:
>
> I'm not finding any reference to that 1907 number in the API reference:
> https://developer.apple.com/reference/foundation/nsiso8601dateformatter/1643324-formatoptions
>
> https://developer.apple.com/reference/foundation/nsiso8601dateformatoptions?language=objc
>
> Where do you find it ? :-)
> Is there a list of such codes somewhere ?
In theory, you should be able to say "current application's NSISO8601DateFormatWithInternetDateTime", but there's a bug that mean the enumerations aren't working for this class. I've just calculated the integer equivalent to that, which the docs say is RFC3339 format.
>
> The "recommended" pattern for TMX is YYYYMMDDThh:mm:ssZ , which does not mean that the output of the code is invalid (in my understanding), but I've seen at least one validator that did not accept it.
if you want that, you can use 1651. That's (NSISO8601DateFormatWithFullTime | NSISO8601DateFormatWithYear | NSISO8601DateFormatWithMonth | NSISO8601DateFormatWithDay).
That's an odd format. I see that TMX 1.4b actually recommends YYYYMMDDThhmmssZ, which is probably more consistent and for which the value would be 115.
But if they want a date, and that format's only recommended, I would expect validators to be understand any valid ISO8601 format.
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden