• 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
class reference "date" problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

class reference "date" problems


  • Subject: class reference "date" problems
  • From: Jean-Christophe Helary <email@hidden>
  • Date: Tue, 21 Apr 2015 23:24:38 +0900

I found that the Applescript Language Reference does not seem to represent the date function properly (or has this to do with my locale?)

https://developer.apple.com/library/mac/documentation/AppleScript/Conceptual/AppleScriptLangGuide/reference/ASLR_classes.html#//apple_ref/doc/uid/TP40000983-CH1g-BBCGECID

date "8/9/2007, 17:06"
     --result: date "Thursday, August 9, 2007 5:06:00 PM"

but in Yosemite Applescript the result is:
	date "Thursday, August 9, 2007 at 00:00:00"

and to get the time correctly you need to put "at":

date "8/9/2007 at 17:06"
	date "Thursday, August 9, 2007 at 17:06:00"

similarly, date "12:06" produces an error (Syntax Error: "invalid date and time date 12:06) and *not* "the time on the current date".

Is there a problem with my system ?
If not, is there a place where such errors are registered ?
Is there an updated version of the Language Reference ?

Jean-Christophe Helary
 _______________________________________________
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: class reference "date" problems
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: big hole in Terminal?
  • Next by Date: Re: class reference "date" problems
  • Previous by thread: Re: big hole in Terminal?
  • Next by thread: Re: class reference "date" problems
  • Index(es):
    • Date
    • Thread