mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Documentation
- Commented the code to suggest that T and Z should never be used in Date::Date.
This commit is contained in:
parent
455be5b8b7
commit
e34f278e1d
1 changed files with 4 additions and 0 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue