On 2005-01-07 12:17:13 -0800, Stephen Turner wrote:
> Not all logfiles report the timezone.

Apache does. When the timezone is available, why not use it?

> Even when they do, there is no standard way to retrieve the timezone
> of the local machine

You're wrong (well, in fact, at least for the time conversion to local
time, but this is exactly what one wants). This is OS-dependent, but
standard. Perhaps you meant "no portable"?

Now, you already have a

#include <unistd.h>

(conditionally defined), so there should be nothing wrong to support
time-related POSIX functions when they are available.

> -- it's completely OS dependent how to do this. And you don't just
> need the timezone now, you need it at any arbitrary time in the
> past.

Well, I think that the only thing that one may want to consider is
the switch to summer time, but the time conversion function takes
that into account; one may also want to get reports in UTC. So, no
problem.

-- 
Vincent Lef�vre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to