Tools.h++ Class Reference

Table Of Contents
RWZone::utc(), respectively. See the class RWZoneSimple for details.
Persistence
None
Example
#include <rw/zone.h>
#include <rw/rwtime.h>
#include <rw/rstream.h>
main(){
RWTime now;
cout << now.asString('\0', RWZone::local()) << endl;
cout << now.asString("%x %X", RWZone::utc()) << endl;
return 0;
}
Enumerations
enum DstRule { NoDST, NoAm, WeEu };
Used by the static member function dstRule(), described below, and by constructors for
classes derived from RWZone.
enum StdZone {
NewZealand = -12, CarolineIslands, MarianaIslands,
Japan, China, Java,
Kazakh, Pakistan, CaspianSea,
Ukraine, Nile, Europe,
Greenwich, Azores, Oscar,
Greenland, Atlantic, USEastern,
USCentral, USMountain, USPacific,
Yukon, Hawaii, Bering
};
StdZone is provided to name the standard time zones. Its values are intended to be passed
to constructors of classes derived from RWZone.
Public Member Functions
virtual int
timeZoneOffset() const = 0;
Returns the number of seconds west of UTC for standard time in this zone. The number