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

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

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004