Time unit. Resolution is 100 ns. More...
Time unit. Resolution is 100 ns.
Inheritance diagram for TimeSpan:Public Member Methods | |
| TimeSpan () | |
| Default constructor. More... | |
| TimeSpan (TimeStamp timeStamp) | |
| Explicit converion from TimeStamp. More... | |
| TimeSpan (const String &text) | |
| Explicit converion from text. More... | |
| TimeSpan (Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond=0, Int32 microsecond=0) | |
| Constructor. More... | |
| void | SetTimeSpan (Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond=0, Int32 microsecond=0) |
| Sets a time span. More... | |
| void | GetTimeSpan (Int32 &day, Int32 &hour, Int32 &minute, Int32 &second, Int32 &millisecond, Int32 µsecond) const |
| Gets a time span. More... | |
| Int32 | GetDay () const |
| Get the day part of the TimeSpan structure. More... | |
| Int32 | GetHour () const |
| Get the hour part of the TimeSpan structure. More... | |
| Int32 | GetMinute () const |
| Get the minute part of the TimeSpan structure. More... | |
| Int32 | GetSecond () const |
| Get the second part of the TimeSpan structure. Not Equivalent to ToSeconds(). More... | |
| Int32 | GetMillisecond () const |
| Get the millisecond part of the TimeSpan structure. Not Equivalent to ToMilliseconds(). More... | |
| Int32 | GetMicrosecond () const |
| Get the microsecond part of the TimeSpan structure. Not Equivalent to ToMicroseconds(). More... | |
| void | ConvertFrom (PCChar8 text) |
| Convert from. More... | |
| void | ConvertTo (BaseStaticString &text) const |
| Convert to. More... | |
| TimeStamp | ToTimeStamp () const |
| Converts this object to a time stamp. More... | |
| TimeSpan & | operator+= (const TimeSpan &right) |
| Addition assignment operator. More... | |
| TimeSpan & | operator-= (const TimeSpan &right) |
| Subtraction assignment operator. More... | |
| Int32 | ToSeconds () const |
| Get the number of seconds of the Timespan value. Not Equivalent to GetSecond(). More... | |
| Int32 | ToMilliseconds () const |
| Get the number of milliseconds of the Timespan value. Not Equivalent to GetMillisecond(). More... | |
| Int32 | ToMicroseconds () const |
| Get the number of microseconds of the Timespan value. Not Equivalent to GetMicrosecond(). More... | |
| TimeSpan | ( | ) |
Default constructor.
Explicit converion from TimeStamp.
| timeStamp | The time stamp. |
| TimeSpan | ( | Int32 | day, |
| Int32 | hour, | ||
| Int32 | minute, | ||
| Int32 | second, | ||
| Int32 | millisecond = 0, |
||
| Int32 | microsecond = 0 |
||
| ) |
Constructor.
| day | The day. |
| hour | The hour. |
| minute | The minute. |
| second | The second. |
| millisecond | (optional) the millisecond. |
| microsecond | (optional) the microsecond. |
|
virtual |
Convert from.
| text | The text. TimeSpan text format : "1d4h56m32s3ms67us400ns" |
Implements IStringConvertible.
|
virtual |
| Int32 GetMicrosecond | ( | ) | const |
Get the microsecond part of the TimeSpan structure. Not Equivalent to ToMicroseconds().
| Int32 GetMillisecond | ( | ) | const |
Get the millisecond part of the TimeSpan structure. Not Equivalent to ToMilliseconds().
| Int32 GetSecond | ( | ) | const |
Get the second part of the TimeSpan structure. Not Equivalent to ToSeconds().
| void GetTimeSpan | ( | Int32 & | day, |
| Int32 & | hour, | ||
| Int32 & | minute, | ||
| Int32 & | second, | ||
| Int32 & | millisecond, | ||
| Int32 & | microsecond | ||
| ) | const |
Gets a time span.
| day | [in,out] The day. |
| hour | [in,out] The hour. |
| minute | [in,out] The minute. |
| second | [in,out] The second. |
| millisecond | [in,out] (optional) the millisecond. |
| microsecond | [in,out] (optional) the microsecond. |
Addition assignment operator.
| right | The right. |
Subtraction assignment operator.
| right | The right. |
| void SetTimeSpan | ( | Int32 | day, |
| Int32 | hour, | ||
| Int32 | minute, | ||
| Int32 | second, | ||
| Int32 | millisecond = 0, |
||
| Int32 | microsecond = 0 |
||
| ) |
Sets a time span.
| day | The day. |
| hour | The hour. |
| minute | The minute. |
| second | The second. |
| millisecond | (optional) the millisecond. |
| microsecond | (optional) the microsecond. |
| Int32 ToMicroseconds | ( | ) | const |
Get the number of microseconds of the Timespan value. Not Equivalent to GetMicrosecond().
| Int32 ToMilliseconds | ( | ) | const |
Get the number of milliseconds of the Timespan value. Not Equivalent to GetMillisecond().
| Int32 ToSeconds | ( | ) | const |
Get the number of seconds of the Timespan value. Not Equivalent to GetSecond().
| TimeStamp ToTimeStamp | ( | ) | const |
Converts this object to a time stamp.