Commit e92f08bc authored by Alexander Lapshin's avatar Alexander Lapshin

bom fix

parent 076f6d0d
...@@ -455,7 +455,7 @@ static double date2jd(const std::string& date) ...@@ -455,7 +455,7 @@ static double date2jd(const std::string& date)
int year, day, month, hour, minute, second; int year, day, month, hour, minute, second;
double fraction; double fraction;
StrToDate(date, year, day, month, hour, minute, second, fraction); StrToDate(date, year, day, month, hour, minute, second, fraction);
return SystemTimeToJ(year, month, day, hour, minute, second, fraction * 1000); return SystemTimeToJ(year, month, day, hour, minute, second, (int)(fraction * 1000));
} }
static std::string jd2date(double jd, int prec = 3) static std::string jd2date(double jd, int prec = 3)
......
#include "interpolate.h" #include "interpolate.h"
#include "Propagator.h" #include "Propagator.h"
#include "GreenwichFrame.h" #include "GreenwichFrame.h"
#include <algorithm> #include <algorithm>
template<bool dir, typename vartype> struct cmppos : public std::binary_function<vartype, vartype, bool> template<bool dir, typename vartype> struct cmppos : public std::binary_function<vartype, vartype, bool>
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment