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 1QQMkU-0003X4-Br for garchives@archives.gentoo.org; Sat, 28 May 2011 16:52:26 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 835801C0CE; Sat, 28 May 2011 16:50:59 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 4BD851C0CE for ; Sat, 28 May 2011 16:50:59 +0000 (UTC) Received: from weird.localnet (p5B276FD8.dip.t-dialin.net [91.39.111.216]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx.virtyou.com (Postfix) with ESMTPSA id 4AC204A82BB for ; Sat, 28 May 2011 18:50:58 +0200 (CEST) From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Converting time formats Date: Sat, 28 May 2011 18:50:56 +0200 User-Agent: KMail/1.13.7 (Linux/2.6.38-pf8; KDE/4.6.3; x86_64; ; ) References: <4DE124C2.3050809@gmail.com> In-Reply-To: <4DE124C2.3050809@gmail.com> 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 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105281850.56873.wonko@wonkology.org> X-Archives-Salt: X-Archives-Hash: 8a2009c3d7199b3f37b206feac7a34d7 Dale asks: > 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. It's seconds since 1970. You can convert them like this: date -d @1306574899 Wonko