|
From: Charles <cha...@at...> - 2002-11-09 23:22:45
|
Zodiaq - > ...do you know a good way to check if two dates are inside one week... You might check in Jeff Garland's Date_Time library which is now part of the Boost Library as of version 1.29.0. See more at www.boost.org. Check especially date_period. "The class boost::gregorian::date_period provides direct representation for ranges between two dates. Periods provide the ability to simplify some types of calculations by simplifying the conditional logic of the program. For example, testing if a date is within an irregular schedule such as a weekend or holiday can be accomplished using collections of date periods." Chuck |