Quick Details

Property Value
Class Time
Namespace cubesat
File Time.h

Description

The Time class provides a convenient way of telling the time, besides using your wrist watch.

Internally, this class holds the current UTC time as a Modified Julian Day. The same convention is used in COSMOS Web as well.

See Also

Functions

Declaration:
Time();


Constructs a new Time object representing the current time.

Declaration:
static Time Now();


Constructs a new Time object representing the current time.

Declaration:
void GetYMD(int &year, int &month, double &day);


Converts the Time to a year, month, and fractional day.

Declaration:
string ToString();


Converts the Time to an ISO 8601 formatted string representation.

Declaration:
double GetModifiedJulianDay();


Returns the UTC time as a Modified Julian Day number.

Declaration:
double Seconds();


Returns the number of Unix seconds represented by this time.

Declaration:
double Seconds();


Returns the number of Unix minutes represented by this time.

Declaration:
double Hours();


Returns the number of Unix hours represented by this time.

Declaration:
double Days();


Returns the number of Unix days represented by this time.

Tags: