Stellarium 0.14.3
List of all members | Public Member Functions
gTimeSpan Class Reference

Public Member Functions

 gTimeSpan (double timeSpanSrc=0)
 
 gTimeSpan (long lDays, int nHours, int nMins, double nSecs)
 
 gTimeSpan (const gTimeSpan &timeSpanSrc)
 
const gTimeSpanoperator= (const gTimeSpan &timeSpanSrc)
 
const gTimeSpanoperator= (const double &timeSpanSrc)
 
long getDays () const
 Operation: getDays() This method returns the integer days number stored in the gTimeSpan object. More...
 
int getHours () const
 Operation: getHours() This method returns the integer hours number stored in the gTimeSpan object. More...
 
int getMinutes () const
 Operation: getMinutes() This method returns the integer Minutes number stored in the gTimeSpan object. More...
 
int getSeconds () const
 Operation: getSeconds() This method returns the integer seconds number stored in the gTimeSpan object. More...
 
double getDblSeconds () const
 Operation: getDblSeconds() This method returns the total seconds number stored in the gTimeSpan object. More...
 
double getDblDays () const
 Operation: getDblDays() This method returns the total days number stored in the gTimeSpan object. More...
 
gTimeSpan operator- (gTimeSpan timeSpan) const
 
gTimeSpan operator+ (gTimeSpan timeSpan) const
 
const gTimeSpanoperator+= (gTimeSpan timeSpan)
 
const gTimeSpanoperator-= (gTimeSpan timeSpan)
 
bool operator== (gTimeSpan timeSpan) const
 
bool operator!= (gTimeSpan timeSpan) const
 
bool operator< (gTimeSpan timeSpan) const
 
bool operator> (gTimeSpan timeSpan) const
 
bool operator<= (gTimeSpan timeSpan) const
 
bool operator>= (gTimeSpan timeSpan) const
 

Detailed Description

Definition at line 54 of file gTime.hpp.

Member Function Documentation

long gTimeSpan::getDays ( ) const

Operation: getDays() This method returns the integer days number stored in the gTimeSpan object.

Returns
long Total number of days
double gTimeSpan::getDblDays ( ) const

Operation: getDblDays() This method returns the total days number stored in the gTimeSpan object.

Returns
double Total number of days in days and fraction of day.
double gTimeSpan::getDblSeconds ( ) const

Operation: getDblSeconds() This method returns the total seconds number stored in the gTimeSpan object.

Returns
double Total number of seconds in seconds and fraction of second.
int gTimeSpan::getHours ( ) const

Operation: getHours() This method returns the integer hours number stored in the gTimeSpan object.

Returns
int This is a value between 0 and 23 hours
int gTimeSpan::getMinutes ( ) const

Operation: getMinutes() This method returns the integer Minutes number stored in the gTimeSpan object.

Returns
int This is a value between 0 and 59 minutes.
int gTimeSpan::getSeconds ( ) const

Operation: getSeconds() This method returns the integer seconds number stored in the gTimeSpan object.

Returns
int This is a value between 0 and 59 seconds

The documentation for this class was generated from the following file: