ISO8601d: Added ::toEpochString

This commit is contained in:
Paul Beckingham
2015-09-26 18:35:47 -04:00
parent c0bc6059ca
commit 4a33f3e093
2 changed files with 9 additions and 0 deletions

View File

@@ -840,6 +840,14 @@ bool ISO8601p::parse (const std::string& input, std::string::size_type& start)
return false;
}
////////////////////////////////////////////////////////////////////////////////
std::string ISO8601d::toEpochString ()
{
std::stringstream epoch;
epoch << _date;
return epoch.str ();
}
////////////////////////////////////////////////////////////////////////////////
double ISO8601d::toJulian ()
{