ISO8601: Prepared ::parse method for its new role of parsing all dates

This commit is contained in:
Paul Beckingham
2015-09-26 11:39:45 -04:00
parent e2f504e686
commit 2b3691508f
2 changed files with 6 additions and 2 deletions

View File

@@ -167,7 +167,10 @@ ISO8601d::operator time_t () const
// | 'R' [n] '/' datetime '/' datetime # start end
// ;
//
bool ISO8601d::parse (const std::string& input, std::string::size_type& start)
bool ISO8601d::parse (
const std::string& input,
std::string::size_type& start,
const std::string& format /* = "" */)
{
auto i = start;
Nibbler n (input.substr (i));