• 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: Date problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date problems


  • Subject: Re: Date problems
  • From: has <email@hidden>
  • Date: Mon, 26 Aug 2002 21:19:13 +0100

John Delacour wrote:

>For a long time now it has been possible to convert any
>_unambiguous_and_valid_ string into a 'date'. You will be surprised
>what will work. I've a feeling it has been even more flexible in the
>past...

I think the problem is more what won't. For example:

set dateString to "lundi, 26 ao{t 2002"
set theDate to date dateString

will fail on machines that aren't using French dates in Date & Time.
[Certainly in 1.6; I'm too lazy to reboot into 10.1.5 to check there, but I
wouldn't be especially surprised if it was any different.] The reverse is
also true, of course (English dates will fail on non-English systems).

All-numerical dates are no solution either, as some countries use
dd/mm/yyyy, others mm/dd/yyyy and yet others yyyy/mm/dd. I just don't see
any way this can be gotten around 100% automatically.


AppleScript simply doesn't have any language- and region-neutral way to
create dates built-in. If you want one, you have to build or borrow it. :/

has

(Of course, we'd not be having any of these problems today if The Great
British Empire had just been allowed its own way to begin with...;)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Date problems
  • Next by Date: Re: Date problems
  • Previous by thread: Re: Date problems
  • Next by thread: Re: Date problems
  • Index(es):
    • Date
    • Thread