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. Advertising

  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. Advertising

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. Jason Berringer

    constraints, etc

    Jason Berringer, Jul 4, 2003, in forum: VHDL
    Replies:
    0
    Views:
    1,083
    Jason Berringer
    Jul 4, 2003
  2. Jack Stone
    Replies:
    1
    Views:
    1,251
    Symon
    Jul 25, 2003
  3. ra
    Replies:
    2
    Views:
    906
    Ralf Hildebrandt
    Oct 9, 2004
  4. flamesrock
    Replies:
    8
    Views:
    502
    Hendrik van Rooyen
    Nov 24, 2006
  5. Replies:
    5
    Views:
    850
Loading...

Share This Page