time constraints

Discussion in 'C++' started by Gary Wessle, Mar 3, 2007.

  1. Gary Wessle

    Gary Wessle Guest

    Hi
    how can I do this in c++

    if( time(0) > Saturday 7:45am && time(0) < Monday 12:00pm )
    do_this();

    thank you
     
    Gary Wessle, Mar 3, 2007
    #1
    1. Advertisements

  2. Gary Wessle

    Ian Collins Guest

    Gary Wessle wrote:
    > Hi
    > how can I do this in c++
    >
    > if( time(0) > Saturday 7:45am && time(0) < Monday 12:00pm )
    > do_this();
    >

    Look up localtime and friends.

    --
    Ian Collins.
     
    Ian Collins, Mar 3, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. engsol
    Replies:
    2
    Views:
    1,189
    Dan Bishop
    Jan 26, 2004
  2. Replies:
    8
    Views:
    770
    Magnus Lycka
    Aug 5, 2005
  3. flamesrock
    Replies:
    8
    Views:
    818
    Hendrik van Rooyen
    Nov 24, 2006
  4. Ro
    Replies:
    3
    Views:
    487
    Lawrence Kirby
    Jan 26, 2005
  5. Summu82
    Replies:
    5
    Views:
    1,138
    Richard Heathfield
    Jun 7, 2006
  6. Replies:
    1
    Views:
    1,024
    Paul Boddie
    Mar 11, 2007
  7. Ron Adam

    time.time or time.clock

    Ron Adam, Jan 13, 2008, in forum: Python
    Replies:
    9
    Views:
    558
    John Machin
    Jan 14, 2008
  8. Replies:
    5
    Views:
    1,027
Loading...