Re: coercing text to time
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