Documentation

- Commented the code to suggest that T and Z should never be used in
  Date::Date.
This commit is contained in:
Paul Beckingham 2010-07-20 17:36:24 -07:00
parent 455be5b8b7
commit e34f278e1d

View file

@ -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])