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

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

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