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: Yvan KOENIG <email@hidden>
- Date: Mon, 06 Mar 2017 13:48:43 +0100
> Le 6 mars 2017 à 12:38, Shane Stanley <email@hidden> a écrit :
>
> 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>
Thanks for these comments.
Playing with the script I discovered that, when we use the W parameter to define the week supposed to contain the day, the code accept the values 0 thru 99 for the number defining the day.
0 means the Sunday preceding the named week, 1 thru 99 means the day with this index starting from the Monday of the named week.
Of course I don't push somebody to use this feature.
Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) lundi 6 mars 2017 13:48:34
_______________________________________________
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