Re: Coping with Date format variations
Re: Coping with Date format variations
- Subject: Re: Coping with Date format variations
- From: Shane Stanley <email@hidden>
- Date: Tue, 25 May 2010 10:39:29 +1000
- Thread-topic: Coping with Date format variations
On 25/5/10 9:59 AM, "Robert Poland" <email@hidden> wrote:
> Is there a simple command that will do this (convert WakeUpTime to an
> integer), and probably quicker?
Others have answered the code question, but it's the "probably quicker" that
interests me. I mean, this implies the existing version is slow -- have you
timed it?
FWIW, I used something like Michelle's code, and it did 10000 iterations in
less than a second on my Mac. I doubt you're going to find anything
significantly faster than that.
I suspect you're assuming the amount of code somehow means it must be slow,
but you can't judge code that way. For example, the one-liner using current
date takes nearly 30 times longer to do 10000 iterations.
--
Shane Stanley <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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden