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

Enumerations

For convenience in naming days of the week and months of the year, two enumeration types are defined. Since these definitions are nested inside class Time, you must refer to both the typenames and the enumeration constants using qualification:

       Weekday w;               // error
       Month   m;               // error
       Time t(1988,january,1);  // error
       Time::Weekday w;               // OK
       Time::Month   m;               // OK
       Time t(1988,Time::january,1);  // OK

Next topic: Constructors
Previous topic: Time constants

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