Constructors
An RWDateTime may be constructed in many ways. For example, you can:
*Construct an RWDateTime with the current date:
 
RWDateTime dt(RWDateTime::setCurrentTime);
*Construct an RWDateTime for a given year, month, and day:
 
RWDateTime d1(1924U, 1, 24); // Jan.24, 1924
*Construct an RWDateTime from an RWDate, supplying hours, minutes, seconds, and milliseconds:
 
RWDate d(10, 3, 90); // Mar. 10, 1990
RWDateTime dt(d, 1, 30, 30, 100) // Mar. 10, 1990 1:30:30.100
 
In the first example, we use the enumerated constructor to construct RWDateTime with current value. If you are constructing an array and must fill in today’s date, you must assign the dates explicitly (see the Essential Tools documentation for more details).
There are many other constructors, including those that use RWDate or RWTime in various ways. There are accessors for each component of an RWDateTime (years, months, days, hours, and so on). RWDateTime provides powerful localization features which may be accessed and changed via the RWDateTime interface. Member operators and functions allow a complete range of arithmetic manipulations on date and time values.
Complete information on the capabilities of RWDateTime can be found in the Essential Tools Module User's Guide and the SourcePro API Reference Guide.