DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
No more ctime(S) errors - Time(C++)

Relational operators

Times can be tested for equality and for the obvious ordering relation. For example,

      Time::julian(1988,1)  > Time::julian(1988,1)-
                                    Duration::seconds(1)
      Time::julian(1988,1)  < Time::julian(1988,1)+
                                    Duration::seconds(1)
      Time::julian(1988,1) == Time::Time(1988,
                                         Time::january,1);

Next topic: Arithmetic operators
Previous topic: Day-of-week operations

© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005