From e34f278e1dfdbe41342b4ed2e49956019bdf8d06 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 20 Jul 2010 17:36:24 -0700 Subject: [PATCH] Documentation - Commented the code to suggest that T and Z should never be used in Date::Date. --- src/Date.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Date.cpp b/src/Date.cpp index c4faad56c..6e5a74030 100644 --- a/src/Date.cpp +++ b/src/Date.cpp @@ -101,6 +101,10 @@ Date::Date (const std::string& input, const std::string& format /* = "m/d/Y" */) unsigned int i = 0; // Index into input. + // Format may include: mMdDyYVaAbBhHNS + // + // Note that the format should never include T or Z, as that interferes with + // the potential parsing for ISO dates constructed from the above format. for (unsigned int f = 0; f < format.length (); ++f) { switch (format[f])