GammaLib
2.0.0
|
Time class interface definition. More...
Go to the source code of this file.
Classes | |
class | GTime |
Time class. More... | |
Functions | |
GTime | operator+ (const GTime &time, const double &seconds) |
Add seconds to time. More... | |
GTime | operator+ (const double &seconds, const GTime &time) |
Add seconds to time. More... | |
GTime | operator- (const GTime &time, const double &seconds) |
Subtract seconds from time. More... | |
double | operator- (const GTime &a, const GTime &b) |
Subtract times. More... | |
bool | operator== (const GTime &a, const GTime &b) |
Check if times are equal. More... | |
bool | operator!= (const GTime &a, const GTime &b) |
Check if times are not equal. More... | |
bool | operator< (const GTime &a, const GTime &b) |
Check if time is smaller than other time. More... | |
bool | operator<= (const GTime &a, const GTime &b) |
Check if time is smaller than or equal to other time. More... | |
bool | operator> (const GTime &a, const GTime &b) |
Check if time is larger than other time. More... | |
bool | operator>= (const GTime &a, const GTime &b) |
Check if time is larger than or equal to other time. More... | |
Time class interface definition.
Definition in file GTime.hpp.
Check if times are not equal.
[in] | a | First time. |
[in] | b | Second time. |
a
is not equal to b
. Definition at line 356 of file GTime.hpp.
References GTime::m_time.
Add seconds to time.
[in] | time | Time. |
[in] | seconds | Seconds. |
Adds seconds
to the time
.
Definition at line 274 of file GTime.hpp.
References GTime::m_time.
Add seconds to time.
[in] | seconds | Seconds. |
[in] | time | Time. |
Adds seconds
to the time
.
Definition at line 292 of file GTime.hpp.
References GTime::m_time.
Subtract seconds from time.
[in] | time | Time. |
[in] | seconds | Seconds. |
Subtracts seconds
from the time
.
Definition at line 310 of file GTime.hpp.
References GTime::m_time.
Subtract times.
[in] | a | First time. |
[in] | b | Second time. |
Subtracts time b
from time a
and returns the difference in seconds.
Definition at line 328 of file GTime.hpp.
References GTime::m_time.
Check if time is smaller than other time.
[in] | a | First time. |
[in] | b | Second time. |
a
is smaller than b
. Definition at line 370 of file GTime.hpp.
References GTime::m_time.
Check if time is smaller than or equal to other time.
[in] | a | First time. |
[in] | b | Second time. |
a
is smaller than or equal to b
. Definition at line 384 of file GTime.hpp.
References GTime::m_time.
Check if times are equal.
[in] | a | First time. |
[in] | b | Second time. |
a
equals b
. Definition at line 342 of file GTime.hpp.
References GTime::m_time.
Check if time is larger than other time.
[in] | a | First time. |
[in] | b | Second time. |
a
is larger than b
. Definition at line 398 of file GTime.hpp.
References GTime::m_time.
Check if time is larger than or equal to other time.
[in] | a | First time. |
[in] | b | Second time. |
a
is larger than or equal to b
. Definition at line 412 of file GTime.hpp.
References GTime::m_time.