log file timestamp

J Davis mrsalty0 at gmail.com
Thu Jun 19 17:08:07 MSD 2008


09:07 1 -14400
date: Thu Jun 19 09:07:04 EDT 2008
date -u: Thu Jun 19 13:07:06 UTC 2008

-Jake

On Thu, Jun 19, 2008 at 8:52 AM, Igor Sysoev <is at rambler-co.ru> wrote:

> On Thu, Jun 19, 2008 at 08:08:32AM -0400, J Davis wrote:
>
> > checking for struct tm.tm_gmtoff ... found
>
> Well, could you built a new program below and run it with date's again ?
>
> -----------
> #ifndef _GNU_SOURCE
> #define _GNU_SOURCE
> #endif
>
> #include <time.h>
> #include <stdio.h>
>
> int
> main()
> {
>    time_t      s;
>    struct tm   t;
>
>    tzset();
>
>    s = time(NULL);
>
>    (void) localtime_r(&s, &t);
>
>     printf("%02d:%02d %d %d\n", t.tm_hour, t.tm_min, t.tm_isdst,
> t.tm_gmtoff);
>
>    return 0;
> }
> -----------
>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080619/3360766b/attachment.html>


More information about the nginx mailing list