43 TimeDelta(
int hh,
int mm,
int ss,
double ff);
57 bool operator<(
const TimeDelta &ts)
const;
58 bool operator<(
double ts)
const;
59 bool operator>(
const TimeDelta &ts)
const;
60 bool operator>(
double ts)
const;
61 bool operator<=(
const TimeDelta &ts)
const;
62 bool operator<=(
double ts)
const;
63 bool operator>=(
const TimeDelta &ts)
const;
64 bool operator>=(
double ts)
const;
65 bool operator==(
const TimeDelta &ts)
const;
66 bool operator==(
double ts)
const;
67 bool operator!=(
const TimeDelta &ts)
const;
68 bool operator!=(
double ts)
const;
79 TimeDelta operator+(
const double& s)
const;
81 TimeDelta operator-(
const double& s)
const;
83 TimeDelta operator*(
const double& s)
const;
86 TimeDelta operator/(
const double& s)
const;
105 const int MIN_TO_SEC=60;
106 const int HOUR_TO_SEC=3600;
107 const int HOUR_TO_MIN=60;
108 const int DAY_TO_SEC=86400;
109 const int DAY_TO_MIN=1440;
110 const int DAY_TO_HOUR=24;
double getTotalSeconds() const
Return equivalent double precision seconds.
Definition: TimeDelta.cpp:119
int seconds
Integer seconds.
Definition: TimeDelta.h:26
TimeDelta()
Empty constructor.
Definition: TimeDelta.cpp:78
void _init(int days, int hours, int minutes, int seconds, double frac)
Internal function for use with constructors.
Definition: TimeDelta.cpp:67
int hours
Integer hours.
Definition: TimeDelta.h:22
double getTotalMinutes() const
Return equivalent double precision minutes.
Definition: TimeDelta.cpp:139
Data structure to store TimeDelta to double precision seconds.
Definition: TimeDelta.h:16
int days
Integer days.
Definition: TimeDelta.h:20
void _normalize()
Internal function.
Definition: TimeDelta.cpp:17
double getTotalHours() const
Return equivalent double precision hours.
Definition: TimeDelta.cpp:145
double getTotalDays() const
Return equivalent double precision days.
Definition: TimeDelta.cpp:151
double frac
Double precision fractional seconds.
Definition: TimeDelta.h:28
int minutes
Integer minutes.
Definition: TimeDelta.h:24