• 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: coercing text to time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: coercing text to time


  • Subject: Re: coercing text to time
  • From: "Mark J. Reed" <email@hidden>
  • Date: Wed, 19 Oct 2005 21:20:42 -0400

On 10/19/05, Christopher Nebel <email@hidden> wrote:
> Ok, dumb question, but why go through the circumlocution ("" & 1)?
> ("" & 1) just yields "1", which works just as well as a literal
> (date "1").   There must be some history there...

Because, as was just brought up in another thread, if you write 'date
"1"', it will get transmogrified into 'date "Saturday, October 1,
2005 12:00:00 AM"' or some such.  Saying 'date ("" & 1)' defeats that.

Ah, so it's an anti-source-munging technique.  I can respect that. Although even if it does get munged into "Saturday, October 1, 2005 12:00:00 AM" it still achieves the intended goal of having a date with a timestamp of midnight.


--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: coercing text to time (From: "Mark J. Reed" <email@hidden>)
 >Re: coercing text to time (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: coercing text to time
  • Next by Date: Re: Folders within folders
  • Previous by thread: Re: coercing text to time
  • Next by thread: Folders within folders
  • Index(es):
    • Date
    • Thread