Re: Leopard Date Bugs
Re: Leopard Date Bugs
- Subject: Re: Leopard Date Bugs
- From: Philip Aker <email@hidden>
- Date: Sun, 18 Nov 2007 22:41:21 -0800
On 2007-11-18, at 17:23, Takaaki Naganoya wrote:
Is ISO date format working as expected on a Japanese setup?
<AppleScript>
set dstr to "1000-01-01"
set d to (dstr as «class isot») as date
set hours of d to 13
d
</AppleScript>
<result>
date "1000年 1月 1日 水曜日 1:00:00 PM"
</result>
This works fine on Tiger.
When I make the internationalization-aware date object creating
routine in AppleScript, it needs hundreds of lines.
Yes I did :-).
Don't have to work so hard with this standard:
<http://www.w3.org/TR/xmlschema-2/>
<http://www.w3.org/TR/xmlschema-2/#isoformats>
<http://www.xml.dvint.com/docs/SchemaDataTypesQR-2.pdf>
AppleScript should have all international standard wc3 classes:
<http://www.w3.org/TR/xmlschema-2/#built-in-datatypes>
Cheers,
Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@
_______________________________________________
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