ISO8601d: Added ::toJulian
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user