Inheritance diagram for Ux::TimeParts:
Definition at line 121 of file uxtime.hpp.
Public Types | |
enum | zone { zone_local, zone_utc } |
Public Member Functions | |
TimeParts (time_t t=0) | |
operator const char * () | |
void | set (const struct tm &t) |
TimeSec | get_secs (void) |
const char * | get_string (bool keep_nl=true) |
void | set (const char *s) |
void | set (time_t t, zone z=zone_local) |
void | set (zone z=zone_local) |
char * | set_fmt (const char *s, const char *format) |
size_t | get_fmt (char *buf, size_t bufsize, const char *format) |
size_t | get_fmtw (wchar_t *buf, size_t bufsize, const wchar_t *format) |
Protected Attributes | |
TimeString | str |
|
Definition at line 126 of file uxtime.hpp. |
|
Initializes to local time (at epoch by default). Definition at line 130 of file uxtime.hpp. References set(). |
|
Gets string from parts according to format (calls strftime). Definition at line 145 of file uxtime.cpp. References errno. |
|
Gets string from parts according to format; wide-character version (calls wstrftime). Definition at line 161 of file uxtime.cpp. References errno. |
|
Calls mktime. Definition at line 26 of file uxtime.cpp. References errno. |
|
Calls asctime_t; optionally removes newline. Definition at line 42 of file uxtime.cpp. References errno, str, and Ux::TimeString::timestr. Referenced by operator const char *(). |
|
Definition at line 134 of file uxtime.hpp. References get_string(). |
|
Definition at line 141 of file uxtime.hpp. |
|
Sets parts according to local time (calling localtime_r) or GMT (calling gmtime_r). Definition at line 96 of file uxtime.cpp. References errno, and zone_local. |
|
Calls getdate. Definition at line 58 of file uxtime.cpp. References EC_GETDATE, and set(). |
|
Sets from another TimeParts or struct tm. Definition at line 112 of file uxtime.cpp. References Ux::TimeString::set(), str, tm::tm_hour, tm::tm_isdst, tm::tm_mday, tm::tm_min, tm::tm_mon, tm::tm_sec, tm::tm_wday, tm::tm_yday, and tm::tm_year. Referenced by set(), and TimeParts(). |
|
Sets parts from string according to format (calls strptime). Definition at line 129 of file uxtime.cpp. References errno. |
|
Definition at line 123 of file uxtime.hpp. Referenced by get_string(), and set(). |