Hallo, On Mon, 31 Mar 2003, bb@kisters.de wrote:
time_t tl; struct tm *pt;
tl = time((time_t *)0); pt = localtime(&tl);
Wenn ich mit setenv("TZ", "UTC",1) die Umgebungsvariable setze erhalte ich mit obigen 2 Zeilen auch die Zeit für UTC, das gleich gilt für andere Zeitzonen. Mein Problem ist nun das Zurückkehren in die Ursprungszeitzone.
Warum speicherst du die originale nicht ab? Wobei die neugesetzte gilt ja eh nur fuer deinen Prozess und evtl. Kindprozesse. HTH, -dnh --
We're already nostalgic about The Week You Got Your Eyes Fixed. "Well, not really so much that week as what followed, The Month Matt Discovered Girls. *Big* chunk of delayed puberty he went through there, as soon as he could see what they look like." - Peter da Silva and adb [stolen from Matt's sig]