Time features in hour, minute, secondes, etc. More...
Time features in hour, minute, secondes, etc.
Public Member Methods | |
Time () | |
Default constructor. More... | |
Time (Int32 hour, Int32 minute, Int32 second=0, Int32 millisecond=0, Int32 microsecond=0) | |
Default constructor. More... | |
Time (const String &text) | |
Explicit convertion from String. More... | |
void | SetTime (Int32 hour, Int32 minute, Int32 second=0, Int32 millisecond=0, Int32 microsecond=0) |
Sets the time. More... | |
void | GetTime (Int32 &hour, Int32 &minute, Int32 &second, Int32 &millisecond, Int32 µsecond) |
Gets the time. More... | |
Int32 | GetHour () const |
Gets the hour part of time structure. More... | |
Int32 | GetMinute () const |
Gets the minute part of time structure. More... | |
Int32 | GetSecond () const |
Gets the second part of time structure. More... | |
Int32 | GetMillisecond () const |
Gets the millisecond part of time structure. More... | |
Int32 | GetMicrosecond () const |
Gets the microsecond part of time structure. More... | |
TimeStamp | ToTimeStamp () const |
Converts the time to a time stamp. More... | |
void | ConvertFrom (PCChar8 text) |
Convert from. More... | |
void | ConvertTo (BaseStaticString &text) const |
Convert to. More... | |
Time & | operator+= (const TimeSpan &timeSpan) |
Addition assignment operator. More... | |
Time & | operator-= (const TimeSpan &timeSpan) |
Subtraction assignment operator. More... | |
Time | ( | ) |
Default constructor.
Default constructor.
hour | The hour. |
minute | The minute. |
second | (optional) the second. |
millisecond | (optional) the millisecond. |
microsecond | (optional) the microsecond. |
Explicit convertion from String.
text | The text containing the time value. ("13:45:21") |
|
virtual |
|
virtual |
Int32 GetHour | ( | ) | const |
Gets the hour part of time structure.
Int32 GetMicrosecond | ( | ) | const |
Gets the microsecond part of time structure.
Int32 GetMillisecond | ( | ) | const |
Gets the millisecond part of time structure.
Int32 GetMinute | ( | ) | const |
Gets the minute part of time structure.
Int32 GetSecond | ( | ) | const |
Gets the second part of time structure.
void GetTime | ( | Int32 & | hour, |
Int32 & | minute, | ||
Int32 & | second, | ||
Int32 & | millisecond, | ||
Int32 & | microsecond | ||
) |
Gets the time.
hour | [in,out] The hour. |
minute | [in,out] The minute. |
second | [in,out] The second. |
millisecond | [in,out] The millisecond. |
microsecond | [in,out] The microsecond. |
Addition assignment operator.
timeSpan | The time span. |
Subtraction assignment operator.
timeSpan | The time span. |
void SetTime | ( | Int32 | hour, |
Int32 | minute, | ||
Int32 | second = 0 , |
||
Int32 | millisecond = 0 , |
||
Int32 | microsecond = 0 |
||
) |
Sets the time.
hour | The hour. |
minute | The minute. |
second | (optional) the second. |
millisecond | (optional) the millisecond. |
microsecond | (optional) the microsecond. |
TimeStamp ToTimeStamp | ( | ) | const |
Converts the time to a time stamp.