• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Leopard Date Bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Leopard Date Bugs
      • From: Philip Aker <email@hidden>
    • WBC date library [was Re: Leopard Date Bugs]
      • From: Loren Ryter <email@hidden>
References: 
 >Leopard Date Bugs (From: Loren Ryter <email@hidden>)
 >Re: Leopard Date Bugs (From: Takaaki Naganoya <email@hidden>)
 >Re: Leopard Date Bugs (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Leopard Date Bugs
  • Next by Date: Re: time format, on leadZero(x)
  • Previous by thread: Re: Leopard Date Bugs
  • Next by thread: WBC date library [was Re: Leopard Date Bugs]
  • Index(es):
    • Date
    • Thread