Constructors – HP Integrity NonStop J-Series User Manual
Page 71
Advertising

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:
Construct an
RWTime
with the current time:
RWTime t;
1.
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
2.
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
3.
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
4.
Advertising
This manual is related to the following products: