- Fixed bug where dateformat=m/d/Y was not parsing "07/08/2008", which is technically "M/D/Y", but, come on, let's be nice.

- Altered (deprecated) TUTORIAL introductory disclaimer.
This commit is contained in:
Paul Beckingham 2008-07-10 01:46:08 -04:00
parent fe03f91744
commit 86f5294436
6 changed files with 38 additions and 34 deletions

View file

@ -9,7 +9,7 @@
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
plan (97);
plan (100);
try
{
@ -147,6 +147,11 @@ int main (int argc, char** argv)
is (fromString6.day (), 31, "ctor (std::string) -> d");
is (fromString6.year (), 2007, "ctor (std::string) -> y");
Date fromString7 ("01/01/2008", "m/d/Y");
is (fromString7.month (), 1, "ctor (std::string) -> m");
is (fromString7.day (), 1, "ctor (std::string) -> d");
is (fromString7.year (), 2008, "ctor (std::string) -> y");
// Relative dates.
Date r1 ("today");
ok (r1.sameDay (now), "today = now");