• 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: 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
  • Follow-Ups:
    • Standard (was: Re: Leopard Date Bugs)
      • From: Takaaki Naganoya <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>)
 >Re: Leopard Date Bugs (From: Takaaki Naganoya <email@hidden>)

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