|
Public Member Functions |
| | JTime () |
| | JTime (const JTime &t) |
| | JTime (struct timeb tb) |
| | JTime (const JString &text) |
| | JTime (XMLNode *node) |
| | JTime (long ms) |
| | JTime (long sec, int milli) |
| | ~JTime () |
| Object * | clone () const |
| unsigned long | getHash () const |
| bool | reset () |
| bool | perfCountReset () |
| bool | equals (const Object *o2) const |
| virtual unsigned long | getPayloadSize () const |
| | Get total size of payload.
|
| bool | unitTest () |
| JString | toXML () |
| JString | toXML (const JString &tagname, const JString ¶ms="") |
| bool | fromXML (XMLNode *node) |
| bool | setTime (int year, int month, int day, int hour, int min, int sec, int ms=0) |
| bool | setLocalTimeZoneInformation () |
| JString | getLocalTimeZoneInformation () const |
| JString | getLocalTimeZoneName () const |
| int | getLocalTimeZoneOffset () const |
| int | getLocalTimeZoneDST () const |
| JString | getOriginalTimeZoneName () const |
| int | getOriginalTimeZoneOffset () const |
| int | getOriginalTimeZoneDST () const |
| int | getTimeDifference () const |
| int | getTimeDifference (const JTime &t) const |
| bool | operator> (const JTime &t) const |
| bool | operator>= (const JTime &t) const |
| bool | operator< (const JTime &t) const |
| bool | operator<= (const JTime &t) const |
| bool | operator== (const JTime &t) const |
| bool | operator!= (const JTime &t) const |
| const JTime & | operator-= (long long millis) |
| const JTime & | operator+= (long long millis) |
| int | compare (const Object *o2) const |
| long | operator- (const JTime &t) const |
| JTime | operator+ (long long millis) const |
| JTime | operator- (long long millis) const |
| bool | addMilliseconds (long long millis) |
| long | microDifference (const JTime &t) const |
| long | getAge () const |
| long long | getMicroAge () const |
| bool | isOlderThan (long ms) const |
| JString | print () |
| | Nice long date and time.
|
| JString | printTime () const |
| | Only time part (hour, minute, second, ms).
|
| JString | printTimeSec () const |
| | Only time part (hour, minute, second).
|
| JString | printTimeMS () const |
| | Only time part (hour, minute, second, ms).
|
| JString | printDateShort () const |
| | Very short date print.
|
| JString | printDateSortable () const |
| | Sortable yyyymmdd.
|
| JString | printDateLong () const |
| | Nice long date.
|
| JString | printStamp () const |
| | Sortable date and time.
|
| JString | printDifTime () const |
| | HH:MM:SS.ms and days, months, years as needed.
|
| JString | toHTTP () const |
| bool | fromHTTP (const JString &text) |
| double | ms () const |
| | Return full time in ms.
|
| JString | asText () const |
| | Returns full time in ms as string.
|
| long | seconds () const |
| | Return sec part of time only.
|
| int | milliseconds () const |
| | Return ms part of time only.
|
| void | setInvalid () |
| bool | isValid () const |
Static Public Member Functions |
| static JTime | createInvalid () |
Public Attributes |
| bool | valid |
| struct timeb | timebuffer |
| JString | tzc |
| unsigned int | atomicOffset |
| struct timeval | perfCount |