ISO8601d: Added ::toJulian

This commit is contained in:
Paul Beckingham
2015-09-26 16:19:56 -04:00
parent 7a5025e64d
commit c0bc6059ca
2 changed files with 7 additions and 0 deletions

View File

@@ -840,6 +840,12 @@ bool ISO8601p::parse (const std::string& input, std::string::size_type& start)
return false;
}
////////////////////////////////////////////////////////////////////////////////
double ISO8601d::toJulian ()
{
return (_date / 86400.0) + 2440587.5;
}
////////////////////////////////////////////////////////////////////////////////
void ISO8601d::toMDY (int& m, int& d, int& y)
{