Re: your mail

From: Jaeho Yang <jhyang@dont-contact.us>
Date: Fri, 15 May 1998 23:49:46 +0900 (KST)

Hmm..

I wrote short perl scripts for the same purpose,, use follow routines..

  #!/usr/bin/perl
  
  @month = ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');

  while ($line = <STDIN>) {
    chop($line);
    ($timestamp, $others) = split(" ", $line, 2);
    ($times_sec, $times_msec) = split('\.', $timestamp);
    ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(int($times_sec));
    print "$mday/",$month[$mon],"/19$year:$hour:$min:$sec ", $others, "\n";
  }
  
--J

>
> On Fri, 15 May 1998, Andrew Specht wrote:
> |o| I was wondering if there is a script out there somewhere that converts the
> |o| number in access.log (or store.log) to the date and time?
> |o|
>
> emulate_http_log on (squid.conf, of course)
>
> ...
> . . . -(o o)-
> _.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._/----oOO--(_)--OOo---
> =
> UNIVERSIDADE ESTADUAL DE LONDRINA - UEL .:. assis @ npd.uel.br
> Nucleo de Processamento de Dados - NPD <*> Marcos Assis Silva
> Gerencia de Software Basico - GSB ":" Analista de Suporte
> Parana - Brasil o PGP key available
> . . . = .
> _.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b'`-`'d*-,._.,-*b
>
Received on Fri May 15 1998 - 07:55:39 MDT

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