On Sunday 27 January 2008, Mick wrote: > On Sunday 27 January 2008, Greg Bowser wrote: > > Hi, > > Those dates are in a format called "unix timestamps", which > > represent the number of seconds since the unix epoch (Jaunuary 1st, > > 1970). You can get the current unix timestamp via the date command > > (date +%s). As far as any command-line utility to convert them,I > > leave that to Google. However, most programming languages provide > > functions to convert between timestamp formats. > > Thanks Greg, > > It's amazing what one can dig out from Google: > > perl -pe 's/(\d+)/localtime($1)/e' /var/log/<logfile_name>
I like this one too: # date -d @1200806556 Sun Jan 20 06:22:36 CET 2008 -- gentoo-user@lists.gentoo.org mailing list