|  |  | 
Utility for handling time. Internally, uses tm (C time structure). More...
#include <Time.h>


| Public Member Functions | |
| Time (time_t unixSeconds) | |
| Time (const std::string &time, const std::string &format, bool STRICT=true) | |
| void | setTime () | 
| Sets time to current UTC time. | |
| void | setTime (time_t time) | 
| Sets time to UTC time. | |
| void | setTime (const std::string &time, const std::string &format, bool STRICT=true) | 
| Sets time. | |
| void | setTime (const tm &time) | 
| const tm & | getTm () const | 
| Sets time to UTC time. | |
| time_t | getTime () const | 
| Returns time in seconds. | |
| const std::string & | str (const std::string &format="") const | 
| Returns the std::string using formatting as defined by strftime() | |
| void | reset () | 
| void | debug () | 
| Protected Attributes | |
| std::string | timeStr | 
Utility for handling time. Internally, uses tm (C time structure).
Note: This class does nout (yet) support format strings of arbitrary size. (output str length has limited size).
| 
 | inline | 
Sets time to UTC time.
Returns the C struct.
| void setTime | ( | const std::string & | time, | 
| const std::string & | format, | ||
| bool | STRICT = true | ||
| ) | 
Sets time.
Note: handling of Time Zone is odd:
The time can be adjusted using several subsequent calls.
| 
 | inline | 
Sets time to UTC time.
 1.9.8
 1.9.8