Re: coercing text to time
Re: coercing text to time
- Subject: Re: coercing text to time
- From: Christopher Nebel <email@hidden>
- Date: Wed, 19 Oct 2005 14:51:12 -0700
On Oct 19, 2005, at 2:39 PM, Mark J. Reed wrote:
On 10/19/05, Emmanuel <email@hidden> wrote:
Now, add that to any date where the time is 12:00AM, one of the
shortest is date ("" & 1):
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.
Incidentally, there's another way (maybe) to deal with the OP
problem: if you can get Excel to give you the *formatted* value of
the cell, which should be "11:45 AM", then you could just say 'time
string of date x'.
--Chris Nebel
AppleScript and Automator Engineering
_______________________________________________
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