Rogue Wave Banner

Click on the banner to return to the user guide home page.

©Copyright 1996 Rogue Wave Software

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 file Table of Contents Next file