Re: date/Snow Leopard changed
Re: date/Snow Leopard changed
- Subject: Re: date/Snow Leopard changed
- From: "Mark J. Reed" <email@hidden>
- Date: Sun, 6 Sep 2009 07:27:27 -0400
Yvan: "A new kind of Apartheid"? Nice. Ya know who else used
insulting hyperbole to make a point? HITLER!
It does appear that we lost some functionality as far as converting
strings to dates, though. Hopefully that was an unintentional side
effect of the new implementation? But does the fact that it's
documented behavior mean that Apple doesn't consider it a defect?
Can you construct an arbitrary date in one step without parsing a
string? "make new date with properties {year: y, month: m, day: d}"
maybe?
On 9/6/09, Yvan KOENIG <email@hidden> wrote:
>
> Le 5 sept. 2009 à 22:59:19, LuKreme a écrit :
>
>>
>> On 5-Sep-2009, at 09:24, Yvan KOENIG wrote:
>>
>>> And what would be the result if the paragraph 1 is:
>>>
>>> 31/12/1943 Arpajon (Seine et Oise)
>>
>> set myTest to "31/12/1943 Arpajon (Seine et Oise)" as string
>> set myDate to date (myTest)
>> return myDate
>> —> date "Friday, 31 December 1943 00:00:00"
>>
>>> Yvan KOENIG (VALLAURIS, France) samedi 5 septembre 2009 17:12:20
>>
>> set myTest to "samedi 5 septembre 2009 17:12:20" as string
>> set myDate to date (myTest)
>> return myDate
>> —> error "Invalid date and time date samedi 5 septembre 2009
>> 17:12:20 of «script»." number −30720
>
> Thanks.
>
> I asked because on French system,
>
> set mytest to "12/31/1943"
> set myDate to date (mytest)
>
> returns
>
> error "Date et heure invalides date 12/31/1943 of «script»." number
> -30720
>
> So, it appears that English systems are able to decipher a date using
> the format dd/mm/yyyy
> but French system is unable to decipher a date using the format mm/dd/
> yyyy
>
> In clear, non English systems are second zone ones. New kind of
> apartheid !
> When I thought that Apple was seriously treating localization
> features, I was wrong.
>
> Yvan KOENIG (VALLAURIS, France) dimanche 6 septembre 2009 12:04:11
>
>
>
--
Sent from my mobile device
Mark J. Reed <email@hidden>
_______________________________________________
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