2 Apr
2003
2 Apr
'03
08:02
bb@kisters.de wrote:
ich möchte die für verschiedene Zeitzonenen ausgeben. Für die aktuelle Zeitzone geht es mit :
time_t tl; struct tm *pt;
tl = time((time_t *)0); pt = localtime(&tl);
aus "man localtime"
NOTES
(...)
The glibc version of struct tm has additional fields
long tm_gmtoff; /* Seconds east of UTC */
const char *tm_tm_zone; /* Timezone abbreviation */
defined when _BSD_SOURCE was set before including