• 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: Coping with Date format variations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coping with Date format variations


  • Subject: Re: Coping with Date format variations
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 24 May 2010 20:46:19 -0400

Hm.  Seems like we were just talking about profiling and premature
optimization.  :). Thanks, Shane.

On Monday, May 24, 2010, Shane Stanley <email@hidden> wrote:
> 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
>

--
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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: Coping with Date format variations (From: Robert Poland <email@hidden>)
 >Re: Coping with Date format variations (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Coping with Date format variations
  • Next by Date: Re: Coping with Date format variations
  • Previous by thread: Re: Coping with Date format variations
  • Next by thread: Can any of you certify that this is a bug in Mail.app
  • Index(es):
    • Date
    • Thread