From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GdXiW-0007R5-ML for garchives@archives.gentoo.org; Fri, 27 Oct 2006 19:50:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9RJm4U2021906; Fri, 27 Oct 2006 19:48:04 GMT Received: from ranger.systems.pipex.net (ranger.systems.pipex.net [62.241.162.32]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9RJivKd005189 for ; Fri, 27 Oct 2006 19:44:57 GMT Received: from mesh.ruskin (81-86-110-137.dsl.pipex.com [81.86.110.137]) by ranger.systems.pipex.net (Postfix) with ESMTP id 2DE6DE00024C for ; Fri, 27 Oct 2006 20:44:56 +0100 (BST) From: Peter Ruskin Organization: Retired To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] date in emerge logs Date: Fri, 27 Oct 2006 20:44:55 +0100 User-Agent: KMail/1.9.5 References: <7573e9640610271128l3a1e0dbpdd23f303da49a2a4@mail.gmail.com> In-Reply-To: X-No-Archive: yes Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610272044.55801.peter.ruskin@dsl.pipex.com> X-Archives-Salt: 46aa9db1-b26d-49d6-87ed-2418e4d1a364 X-Archives-Hash: 15ca23f28023bc19645157eb5590ef95 On Friday 27 October 2006 19:34, Jorge Almeida wrote: > On Fri, 27 Oct 2006, Richard Fish wrote: > >> I'm assuming that 1161911504 is some date. If so, how can I > >> translate it into something human-meaningfull? > > > > carcharias rjf # date -d @1161911504 > > Thu Oct 26 18:11:44 MST 2006 > > Well, there's one more solution :) > Would you say that using date is faster/lighter than awk (as per > other replies)? This is to be included in a script, so the > lighter the better... > Thanks. > I would think so, yes. If you write a script like this... #!/bin/sh # unix-time date -d @$1 ...and enter: $ unix-time 1161911504 Fri Oct 27 02:11:44 BST 2006 -- Peter ======================================================================== Gentoo Linux: Portage 2.1.2_pre3-r9 kernel-2.6.18-gentoo AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ gcc(GCC): 4.1.1 KDE: 3.5.5 Qt: 3.3.6 ======================================================================== -- gentoo-user@gentoo.org mailing list