Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > time constraints

Reply
Thread Tools

time constraints

 
 
Gary Wessle
Guest
Posts: n/a
 
      03-03-2007

Hi
how can I do this in c++

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

thank you
 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      03-03-2007
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. Bobby Edward ASP .Net 4 11-03-2008 10:53 PM
Gridview error: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. Bobby Edward ASP .Net 1 10-14-2008 04:09 AM
how to apply time constraints to JSP page snehapshinde@gmail.com Java 5 10-10-2008 11:04 AM
Is time.time() < time.time() always true? flamesrock Python 8 11-24-2006 06:51 AM
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. bazzer ASP .Net 1 04-06-2006 01:31 PM



Advertisments