Re: about timestamp reformat

From: Gunnar Hjalmarsson (noreply_at_gunnar.cc)
Date: 03/22/04


Date: Mon, 22 Mar 2004 19:43:10 GMT

Gunnar Hjalmarsson wrote:
>
> { '|' . (sprintf '%d-%02d-%02d-%02d%s%06d', $3, $months{$1},
> $2, $7 eq 'PM' ? 12+$4 : $4, $5, $6) . '|' }egx;

Those lines are probably better replaced with:

           { '|' . (sprintf '%d-%02d-%02d-%02d%s%03d', $3, $months{$1},
             $2, $7 eq 'PM' ? 12+$4 : $4, $5, $6) . '000|' }egx;

-- 
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl