Data structure to store TimeDelta to double precision seconds. More...
#include <TimeDelta.h>
Public Member Functions | |
TimeDelta () | |
Empty constructor. | |
TimeDelta (double ss) | |
Constructor with seconds. | |
TimeDelta (int hh, int mm, int ss) | |
Constructor with hours, minutes and seconds. | |
TimeDelta (int hh, int mm, double ss) | |
Constructor with hours, minutes and seconds. | |
TimeDelta (int hh, int mm, int ss, double ff) | |
Constructor with hours, minutes, seconds and fractional seconds. | |
TimeDelta (int days, int hours, int minutes, int seconds, double frac) | |
Constructor with days, hours, minutes, seconds and fractional seconds. | |
TimeDelta (const TimeDelta &ts) | |
Copy constructor. | |
void | _init (int days, int hours, int minutes, int seconds, double frac) |
Internal function for use with constructors. | |
void | _normalize () |
Internal function. | |
bool | operator< (const TimeDelta &ts) const |
bool | operator< (double ts) const |
bool | operator> (const TimeDelta &ts) const |
bool | operator> (double ts) const |
bool | operator<= (const TimeDelta &ts) const |
bool | operator<= (double ts) const |
bool | operator>= (const TimeDelta &ts) const |
bool | operator>= (double ts) const |
bool | operator== (const TimeDelta &ts) const |
bool | operator== (double ts) const |
bool | operator!= (const TimeDelta &ts) const |
bool | operator!= (double ts) const |
TimeDelta & | operator= (const TimeDelta &ts) |
TimeDelta & | operator= (double ss) |
TimeDelta & | operator+= (const TimeDelta &ts) |
TimeDelta & | operator+= (const double &s) |
TimeDelta & | operator-= (const TimeDelta &ts) |
TimeDelta & | operator-= (const double &s) |
TimeDelta | operator+ (const TimeDelta &ts) const |
TimeDelta | operator+ (const double &s) const |
TimeDelta | operator- (const TimeDelta &ts) const |
TimeDelta | operator- (const double &s) const |
TimeDelta | operator* (const double &s) const |
TimeDelta & | operator*= (const double &s) |
TimeDelta | operator/ (const double &s) const |
TimeDelta & | operator/= (const double &s) |
double | getTotalDays () const |
Return equivalent double precision days. | |
double | getTotalHours () const |
Return equivalent double precision hours. | |
double | getTotalMinutes () const |
Return equivalent double precision minutes. | |
double | getTotalSeconds () const |
Return equivalent double precision seconds. | |
Public Attributes | |
int | days |
Integer days. | |
int | hours |
Integer hours. | |
int | minutes |
Integer minutes. | |
int | seconds |
Integer seconds. | |
double | frac |
Double precision fractional seconds. | |
Data structure to store TimeDelta to double precision seconds.
The intent of the class is to assist in translating DateTime tags to double precision floats w.r.t Reference epoch for numerical computation and vice-versa