Tools.h++ Manual
104011 Tandem Computers Incorporated 6-1
Using Class RWDate 6
Class
RWDate
represents a date, stored as a Julian day number. It serves as a
compact representation for calendar calculations, shields you from details such
as leap years, and performs conversions to and from conventional calendar
formats.
The algorithm to convert a Gregorian calendar date (for example January 10,
1990) to a Julian day number is given in: Algorithm 199 from Communications
of the ACM, Volume 6, No. 8, Aug. 1963, p. 444.
The Gregorian calendar was introduced by Pope Gregory XIII in 1582, and was
adopted by England on September 14, 1752. Class
RWDate
will not provide
valid dates before 1582.