Does anyone have the source for this function?
March 22, 1994
2:56 p.m.
Does anyone have a UNIX function for converting a time from timezoneX to timezoneY? I know how to write this by mucking with char** environ and by calling tzset(), but I'm interested in a more elegant solution (perhaps using fields in the tm structure). convert(timezoneX, timezoneY, inputTime, outputTime) The char** environ solution seems to me to be inelegant because 1) I have to reread a file whenever I call tzset() (I think), and 2) while I'm doing the conversion the call to tzset() has a global effect on my process. If I'm interrupted by a signal handler that displays the time it will be in a foreign timezone. aaron@lehman.com
11717
Age (days ago)
11717
Last active (days ago)
0 comments
1 participants
participants (1)
-
aaron@lehman.com