Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

5.2 Constructors

An RWTime may be constructed in several ways:

  1. Construct an RWTime with the current time:

       RWTime t;
    
  2. Construct an RWTime with today's date, at the specified local hour (0-23), minute (0-59), and second (0-59):

       RWTime t(16, 45, 0);                        // today, 16:45:00
    
  3. Construct an RWTime for a given date and local time:

       RWDate d(2, "June", 1952);
       RWTime t(d, 16, 45, 0);                    // 6/2/52 16:45:003
    
  4. Construct an RWTime for a given date and time zone:

       RWDate d(2, "June", 1952);
       RWTime t(d, 16, 45, 0, RWZone::utc());      // 6/2/52 16:45:00
    

Previous fileTop of documentContentsIndexNext file
©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.