About Two or Four Digit Years
The default format for an RWDateTime on many systems and in many locales contains only a two-digit year. Two-digit year specifiers assume the century 1900, so you should create programs that use four-digit year specifiers. You can enforce the use of a four-digit year by defining the build macro RW_CENTURY_REQD in RCB when building the libraries.
Be aware, however, that defining this macro requires a four-digit year to be provided when constructing an RWDateTime. For example, the following code may fail:
 
std::stringstream s;
RWDateTime dt = RWDateTime::now();
s << dt << std::endl; // 1
RWDateTime dt2;
s >> dt2; // Exception!
The solution is to first convert the RWDateTime to a string using RWDateTime::asString() with a format string suitable for your locale that includes four-digit years. For example, replace line //1 above with:
 
s << dt.asString("%m/%d/%Y %H:%M:%S") << std::endl; // 1