Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #19498

Re: How to best check if a time hh:mm is within a range

From Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid>
Newsgroups comp.lang.javascript
Subject Re: How to best check if a time hh:mm is within a range
Date 2013-04-26 21:03 +0100
Organization Home
Message-ID <x9k6EPFa2teRFwa+@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <kl9kba$nlb$1@dont-email.me>

Show all headers | View raw


In comp.lang.javascript message <kl9kba$nlb$1@dont-email.me>, Wed, 24
Apr 2013 23:57:55, Tony Johansson <johansson.andersson@telia.com>
posted:

>Now what is the best algoritm to check if the hh:mm that I get from db
>lies within the time header range.

Before that can be answered, it is necessary to know the meaning of
"best".

Sometimes shortest is best, sometimes fastest is best (until a new
browser version alters relative speeds of different algorithms).
Sometimes simplest is best; but perceived simplicity depends on the
experience of the perceiver.  Sometimes, cheapest to write is best.

For such an easy task, the performance of the overall system will depend
only very slightly on which algorithm is chosen, provided that it is
reasonable and infallible.

-- 
 (c) John Stockton, nr London, UK.  Mail via homepage.  Turnpike v6.05  MIME.
  Web  <http://www.merlyn.demon.co.uk/> - FAQqish topics, acronyms and links;
  Astro stuff via astron-1.htm, gravity0.htm ; quotings.htm, pascal.htm, etc.
 No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to best check if  a time hh:mm is within a range "Tony Johansson" <johansson.andersson@telia.com> - 2013-04-24 23:57 +0200
  Re: How to best check if  a time hh:mm is within a range Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-25 01:42 +0200
    Re: How to best check if  a time hh:mm is within a range Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-25 13:02 +0200
  Re: How to best check if  a time hh:mm is within a range Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-04-26 21:03 +0100

csiph-web