Enhancements - date

- Relocated valid.cpp/dataValid to Date::valid.
- Added new unit tests in date.t.cpp.
This commit is contained in:
Paul Beckingham
2009-06-13 12:51:51 -04:00
parent d99dec5556
commit 0665caae55
5 changed files with 23 additions and 16 deletions

View File

@@ -46,6 +46,7 @@ public:
time_t toEpoch ();
void toMDY (int&, int&, int&);
const std::string toString (const std::string& format = "m/d/Y") const;
static bool valid (const std::string&, const std::string& format = "m/d/Y");
static bool valid (const int, const int, const int);
static bool leapYear (int);