Re: Conversion of ISO Date String to AppleScript Date
Re: Conversion of ISO Date String to AppleScript Date
- Subject: Re: Conversion of ISO Date String to AppleScript Date
- From: Shane Stanley <email@hidden>
- Date: Mon, 06 Mar 2017 22:38:40 +1100
On 6 Mar 2017, at 8:38 pm, Yvan KOENIG <email@hidden> wrote:
>
> It seems clear that if we want to get the time value, the separator between date components MUST be the dash AND that the separator between date and time MUST be space or T.
The separator between the date components is actually optional, according to ISO 8601 -- you can use "20160105T13:01:15". And yes, the spec allows only a space or T between date and time.
The code is lenient in the sense that it's forgiving of some things, but it still expects values to follow ISO 8601 mostly, and not go making it up.
--
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