From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QQUDF-0008FJ-8b for garchives@archives.gentoo.org; Sun, 29 May 2011 00:50:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D79241C03D; Sun, 29 May 2011 00:48:25 +0000 (UTC) Received: from outbound.icp-osb-irony-out7.iinet.net.au (outbound.icp-osb-irony-out7.iinet.net.au [203.59.1.108]) by pigeon.gentoo.org (Postfix) with ESMTP id 309B21C03D for ; Sun, 29 May 2011 00:48:24 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvcFAK+X4U18ljh0/2dsb2JhbABVG5gWjg93xVaGHgSGYo4rHYpM X-IronPort-AV: E=Sophos;i="4.65,287,1304265600"; d="scan'208";a="13242120" Received: from unknown (HELO moriah.localdomain) ([124.150.56.116]) by outbound.icp-osb-irony-out7.iinet.net.au with ESMTP; 29 May 2011 08:48:23 +0800 Received: from localhost (localhost [127.0.0.1]) by moriah.localdomain (Postfix) with ESMTP id 3235F20A9458 for ; Sun, 29 May 2011 08:48:23 +0800 (WST) X-Virus-Scanned: amavisd-new at localdomain Received: from moriah.localdomain ([127.0.0.1]) by localhost (moriah.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bie7Uir7qZUZ for ; Sun, 29 May 2011 08:48:18 +0800 (WST) Received: from [192.168.44.2] (rattus [192.168.44.2]) by moriah.localdomain (Postfix) with ESMTP id 8596320A9455 for ; Sun, 29 May 2011 08:48:18 +0800 (WST) Subject: Re: [gentoo-user] Converting time formats From: William Kenworthy To: gentoo-user@lists.gentoo.org In-Reply-To: <4DE124C2.3050809@gmail.com> References: <4DE124C2.3050809@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" Organization: Home in Perth! Date: Sun, 29 May 2011 08:48:17 +0800 Message-ID: <1306630097.9523.9.camel@rattus> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 8b3c21966b6841b2d2c6d0938330202e On Sat, 2011-05-28 at 11:37 -0500, Dale wrote: > I asked this once before but I can't find it. I have a log file that > has time stamps that look like this: > > lastrun = 1306574899 > > What do I use to get the human time for that? I thought it was the date > command but I couldn't find it in the man page. I tried google but I > can't recall what that time stamp is called either so not sure what to > search for. > > Could someone enlighten me a little bit here? > > Thanks. > > Dale > > :-) :-) > As well as your other replies, check out ccze rattus ~ # esearch ccze [ Results for search key : ccze ] [ Applications found : 1 ] * app-admin/ccze Latest version available: 0.2.1-r2 Latest version installed: 0.2.1-r2 Size of downloaded files: 136 kB Homepage: http://dev.gentoo.org/~joker/ccze/ccze.txt Description: A flexible and fast logfile colorizer License: GPL-2 Pass your log through it for nicely coloured text (words like "alarm" and "error" are bright red to stand out) as well as converting date epoch on the fly, leaving it in context. BillK -- William Kenworthy Home in Perth!