Expand Globalfunctions #168
@ -12,8 +12,7 @@ class TimeSystems {
|
|||||||
virtual ~TimeSystems() {}
|
virtual ~TimeSystems() {}
|
||||||
|
|
||||||
static double convertUnixToJD2000(timeval time) {
|
static double convertUnixToJD2000(timeval time) {
|
||||||
// time = {{s},{us}}
|
return ((time.tv_sec + time.tv_usec * 1e-6) / 86400.0) + 2440587.5 - 2451545;
|
||||||
return (time.tv_sec / 86400.0) + 2440587.5 - 2451545;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user