Re: Leopard Date Bugs
Re: Leopard Date Bugs
- Subject: Re: Leopard Date Bugs
- From: Takaaki Naganoya <email@hidden>
- Date: Mon, 19 Nov 2007 10:23:54 +0900
On 2007/11/17, at 23:11, Philip Aker wrote:
On 2007-11-17, at 05:35, Takaaki Naganoya wrote:
On 2007/11/17, at 3:06, Loren Ryter wrote:
set y1k to "1/1/1000"
set y1k_d1 to date y1k
Japanese scripters never wtite date string in such a format.
This cause error in both Tiger and Leopard.
Japanese format date string must be "1000/1/1".
Greetings Takaaki,
Is ISO date format working as expected on a Japanese setup?
set dstr to "1000-01-01"
set d to (dstr as ISO date) as date
set hours of d to 13
d
Should be good all over the world and a sure way to transfer dates.
<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 :-).
--
Takaaki Naganoya
Piyomaru Software
http://piyo.piyocast.com
email@hidden
PiyoCast Web (Podcasting with Music!)
http://www.piyocast.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