Time Calculations

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Brettmw23 (anonymous_at_discussions.microsoft.com)
Date: 04/18/04


Date: Sun, 18 Apr 2004 08:45:06 -0700

Matt, perhaps I'm misunderstanding what your attempting to do, but it
seems to me you're only testing one side of the problem. For instance, your
only checking if it's greater than your start time. When you really need to
find out if it's between your start and end time.

It seems to me that you could use something like:
=If(And(A1<C1,B1>C1),True,False).

--
BMW
>-----Original Message-----
>Hello to all,
>A1 "Start time" 3/13/04 07:00
>B1 "Stop Time" 3/13/04 23:00
>C1 3/13/04 16:00
>
>I am tryin to determine if the one hour time period preceeding C1 eg. 3/
13/04 15:00-16:00, falls between A1 and B1.  Curently I am using A1< C1
-1/24, which is working.  Is there a better way to accomplish this, are there 
any forseen problems with my approach?
>
>Thanks
>
>.
>


Relevant Pages

  • Re: Documents link on Start Menu
    ... I just did a right-click | Delete to accomplish that. ... misunderstanding something? ... > In TweakUI under the explorer options is the one you want ...
    (microsoft.public.windowsxp.basics)
  • Re: hellp improve efficiency
    ... Perhaps I'm misunderstanding what you're ultimately trying to ... accomplish. ... you're using Apache, look into mod_rewrite: ... As you see,for each regex match,I've tested it twice. ...
    (perl.beginners)
  • Re: Printer Object and Printer common dialog
    ... >> I used some code from VBnet to accomplish this. ... Yeah yeah yeah. ... Matt ...
    (microsoft.public.vb.general.discussion)
  • Re: Beliefnet Mormon Debate poster
    ... Dear Matt, ... It is unlikely this would accomplish anything. ... warmest, Susan ... Prev by Date: ...
    (talk.religion.bahai)
  • Re: Aero blur with just the blur?
    ... how does it accomplish that? ... perhaps I'm misunderstanding the question. ... Money often costs too much. ...
    (microsoft.public.win32.programmer.gdi)