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

Re: dates and time


  • Subject: Re: dates and time
  • From: Yvan KOENIG <email@hidden>
  • Date: Tue, 8 Sep 2009 09:38:40 +0200


Le 7 sept. 2009 à 22:10:36, email@hidden a écrit :


So for some dates in some locations the scripts won't error, they'll just return incorrect results.

I prefer an error.

ES


Of course, on a French system, the first two are displayed but with wrong results

--> 1 février 2003
when you wanted
2 janvier 2003 ;-)

I 100% agree but, without a tool allowing us to help the program, I don't know how the code may guess that

1/2/2003 is a dd/mm/yyyy date or a mm/dd/yyyy one.

This why I wrote.
(3) is it foolish to ask for this kind of tool:


localizeDate("12/31/1943","US") 
or 
localizeDate("1943/12/31","IEEE")

or
localizeDate("11 september 2001","English")
localizeDate("12/31/1943","English")
localizeDate("14 juillet 1789","French")
localizeDate("14/07/1789","French")
localizeDate("1943/12/31","IEEE")

or the alternate Ed's proposal:

date someStringwithAdate using {region: "United States", calendar: "Gregorian")

The revised tool is described as giving a better support of internationalization.

At this time, I see a tool which works correctly only for English users receiving only mm/dd/yyyy dates.
This is why I used the word which hurted Mark J. Reed.
I will not repeat the word but my judjment is unchanged : 
there are users of 1st class and users of 2nd class !

Yvan KOENIG (VALLAURIS, France) mardi 8 septembre 2009 09:38:05



 _______________________________________________
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:
    • SnowLep & FolderActions
      • From: DigitEL <email@hidden>
References: 
 >new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: "email@hidden" <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: "email@hidden" <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: Robert Poland <email@hidden>)
 >Re: new (I think) time question (From: email@hidden)
 >Re: new (I think) time question (From: "Mark J. Reed" <email@hidden>)
 >dates and time (From: "email@hidden" <email@hidden>)
 >Re: dates and time (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: strange regexp
  • Next by Date: Re: date/Snow Leopard changed
  • Previous by thread: Re: dates and time
  • Next by thread: SnowLep & FolderActions
  • Index(es):
    • Date
    • Thread