#include <mcllib/MCTime.h>
Public Member Functions | |
MCTime (mctime_t t) | |
Construct from an mctime_t value. | |
MCTime (const char *timeStr) | |
Construct from a time string. | |
MCTime () | |
Create a time representing the current time. | |
operator mctime_t () const | |
Get the mctime_t value from the time object. | |
bool | operator!= (const MCTime &t) const |
Compare two time objects for in-equality. | |
MCTime | operator() (const MCTimeDelta &t) const |
Apply a delta to this MCTime. | |
MCTimeDelta | operator- (const MCTime &t) const |
Subtract an MCTime from this time object. | |
bool | operator< (const MCTime &t) const |
Determine if this MCTime object is less than another. | |
bool | operator<= (const MCTime &t) const |
Determine if this MCTime object is less or equal to another. | |
MCTime & | operator= (mctime_t t) |
Assign from an mctime_t. | |
bool | operator== (const MCTime &t) const |
Compare two time objects for equality. | |
bool | operator> (const MCTime &t) const |
Determine if this MCTime object is greater than another. | |
bool | operator>= (const MCTime &t) const |
Determine if this MCTime object is greater than or equal to another. | |
MCString | toString () const |
Get the time as a string in the default format. |
Times are represented in microseconds since 00:00 1st Jan 1970
|
Construct from a time string. Many formats are handled including
|
|
Construct from an mctime_t value.
|
|
Get the mctime_t value from the time object.
|
|
Compare two time objects for in-equality.
|
|
Apply a delta to this MCTime. Because the delta may be positive or negative, the value of this MCTime is increased or decreased accordingly.
|
|
Subtract an MCTime from this time object.
|
|
Determine if this MCTime object is less than another.
|
|
Determine if this MCTime object is less or equal to another.
|
|
Assign from an mctime_t.
|
|
Compare two time objects for equality.
|
|
Determine if this MCTime object is greater than another.
|
|
Determine if this MCTime object is greater than or equal to another.
|
|
Get the time as a string in the default format. The default format is YYYY-MM-DD HH:mm:SS.ttt<P> Where
|