• 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 "Jan" --> date object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date "Jan" --> date object


  • Subject: Re: date "Jan" --> date object
  • From: Emmanuel <email@hidden>
  • Date: Wed, 13 Nov 2002 14:02:12 +0100

At 1:00 PM -0500 12/11/02, Arthur J. Knapp wrote:
Here's something I never noticed before: you can simply use a
month name-string to obtain a date for the first day of that month
for the current year.

date "November" --> compiles as date "Friday, November 1, 2002 12:00:00 AM"

date ("" & "Nov") --> returns date "Friday, November 1, 2002 12:00:00 AM"

I think this behavior was implemented for compatibility with some famous French saying: "en Mai fais ce qu'il te plait" (in May do whatever you want)

--------------------------------------------
date "when may I do whatever I want?"
--> May 1st
--------------------------------------------

Emmanuel

PS
If you want the string to remain as you wrote it through compilation, try "date "bla bla" of (current date)"
_______________________________________________
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.
  • Follow-Ups:
    • Re: date "Jan" --> date object
      • From: Mr Tea <email@hidden>
References: 
 >date "Jan" --> date object (From: "Arthur J. Knapp" <email@hidden>)

  • Prev by Date: Re: "of machine" use?
  • Next by Date: Re: Cleaning up Eudora...
  • Previous by thread: date "Jan" --> date object
  • Next by thread: Re: date "Jan" --> date object
  • Index(es):
    • Date
    • Thread