Public Member Functions | |
Constructor / Destructor | |
CP_Time () | |
Constructor. | |
CP_Time (CP_STD::time_t inTime) | |
~CP_Time () | |
Destructor. | |
Getters | |
SInt16 | GetHour () |
SInt16 | GetMinute () |
SInt16 | GetSecond () |
Math | |
const CP_Time & | AddHours (SInt16 inHours) |
const CP_Time & | SubtractHours (SInt16 inHours) |
const CP_Time & | AddMinutes (SInt16 inMinutes) |
const CP_Time & | SubtractMinutes (SInt16 inMinutes) |
const CP_Time & | AddSeconds (SInt16 inSeconds) |
const CP_Time & | SubtractSeconds (SInt16 inSeconds) |
Format | |
CP_String | Format (char *inFormat) |
Setters | |
void | SetTimeNow () |
void | SetHour (SInt16 inHour) |
void | SetMinute (SInt16 inMinute) |
void | SetSecond (SInt16 inSecond) |
Constructor / Destructor | |
CP_Time (UInt32 inMacTime, bool inIsMacTime) | |
CP_Time (LongDateRec inDateRec) | |
Getters | |
void | GetTime (LongDateRec &inOutDateRec) |
Setters | |
void | SetTime (LongDateRec inDateRec) |
Constructor / Destructor | |
CP_Time (SYSTEMTIME inWinTime) | |
Getters | |
void | GetTime (SYSTEMTIME &inOutWinTime) |
Setters | |
void | SetTime (SYSTEMTIME inWinTime) |
Protected Attributes | |
CP_STD::time_t | fTime |
SInt16 | fHour |
SInt16 | fMinute |
SInt16 | fSecond |
There are also methods to return the time in a specific formatted way.
|
Constructor. Sets the time to the current time.
|
|
Constructor. Sets the time from the passed in timte_t.
|
|
Destructor.
|
|
Seconds of the time. |
|
Constructor. Sets the time from the passed in MacOS LongDateRec.
|
|
Constructor. Sets the time from a Windows SYSTEMTIME.
|
|
Returns the hour portion of the time.
|
|
Returns the minute portion of the time.
|
|
Returns the seconds portion of the time.
|
|
Adds the passed in number of hours to this time.
|
|
Subtacts the passed in number of hours from this time.
|
|
Adds the passed in number of minutes to this time.
|
|
Subtacts the passed in number of minutes from this time.
|
|
Adds the passed in number of seconds to this time.
|
|
Subtacts the passed in number of seconds from this time.
|
|
Formats the time and returns a time based on the passed in char * format.
|
|
Sets this object to the current time.
|
|
Sets the hour portion of the time.
|
|
Sets the minute portion of the time.
|
|
Sets the seconds portion of the time.
|
|
Returns the time in the passed in MacOS LongDateRec.
|
|
Sets the time from the passed in MacOS LongDateRec.
|
|
Gets the time, and returns in a Windows SYSTEMTIME.
|
|
Sets the time from a Windows SYSTEMTIME.
|
|
|
|
time_t representation of time. |
|
Hour of the time. |
|
Minute of the time. |