RE: timestamps in access.log

From: Howarth, Richard <rhowarth@dont-contact.us>
Date: Mon, 18 Aug 1997 15:25:22 +0100

I couldn't find an obvious system utility, so I knocked the following
bit of code together.

/*
        timeconv.c
        Convert seconds to time.
*/

#include <stdio.h>
#include <time.h>

int main(int argc,char **argv)
{
        time_t t;
        register int i=0;

        while(--argc){
                i++;
                t=atol(argv[i]);
                printf("%s",ctime(&t));
        }
        return 0;
}

> ----------
> From: Paul Gracy[SMTP:GRACYP@swmotor.usxpress.com]
> Sent: 18 August 1997 15:02
> To: squid-users@nlanr.net
> Subject: timestamps in access.log
>
> I'm guessing that the first entry on each line in access.log is a time
> stamp.
> How do I make it readable (YY/MM/DD or similar)?
>
> thanks,
> Paul Gracy
>

Received on Mon Aug 18 1997 - 07:34:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:36:47 MST