---- On Thu, 16 Feb 2012 15:47:52 -0700 Jeff Morriss wrote ----
>>Looks like FreeBSD provides a timezone() function which they admit is
>not POSIX compliant. And their time.h doesn't seem to have any
>kind of variable that gives the same functionality...
>I guess what's needed is to:
>- check for the variable at configure time
>- if we don't have it, call localtime() to get a struct tm, and pull the
>timezone offset out of there
>Maybe the first step can just be skipped for simplicity, though. I'll
>try to get to that tonight unless someone beats me to it.
Thanks. The description of localtime in your references and on Microsoft's site say that the timezone/_timezone variable is affected by the TZ variable. Would the timezone from struct tm (tm_gmtoff?) behave in the same way (or does it need to? I haven't looked at the surrounding code much).