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 1QQNOM-00083Z-TG for garchives@archives.gentoo.org; Sat, 28 May 2011 17:33:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30C4A1C086; Sat, 28 May 2011 17:31:36 +0000 (UTC) Received: from mail-gw0-f53.google.com (mail-gw0-f53.google.com [74.125.83.53]) by pigeon.gentoo.org (Postfix) with ESMTP id 0069E1C086 for ; Sat, 28 May 2011 17:31:35 +0000 (UTC) Received: by gwj20 with SMTP id 20so1517750gwj.40 for ; Sat, 28 May 2011 10:31:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Lm2CKunpvmFdx+tcKzg2BUOpbXl7EZWasoQaYiIoFRo=; b=k679LKQxD4bSO9hDoU7NeWxC98Ypx34vVFeiZTNFUX472ii91Q92KzEtJm4/N9lSbc jHAtI85PMq4WORN4l1fsK6rWQmZwQ8i4IsxYz4FtcrABDpFlx7N4aEHOG3KNTOVR+oxm TEiTEYVz0hd7LDU22y/1E2tFfk0bsJzSODq1Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=HT7ADj9803FAQ3css4e5zNksdSCjK8eRonYCOpIEB8gth1lKOOUZCiv2KJkAl+XfDB RUVh4KHztqdITncUeYPbWwYuydzCNNi7kD8CYsZxumnBVJmHoZJgoZbxaawEoLR+fY+w gLtyPX5MB1pV3H/orD1/WmL/6EOcG+9DfDg9M= Received: by 10.101.138.2 with SMTP id q2mr2116159ann.141.1306603895430; Sat, 28 May 2011 10:31:35 -0700 (PDT) Received: from [192.168.2.5] (adsl-98-95-108-236.jan.bellsouth.net [98.95.108.236]) by mx.google.com with ESMTPS id w1sm2154765anh.29.2011.05.28.10.31.33 (version=SSLv3 cipher=OTHER); Sat, 28 May 2011 10:31:34 -0700 (PDT) Message-ID: <4DE13174.7020200@gmail.com> Date: Sat, 28 May 2011 12:31:32 -0500 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110517 Gentoo/2.0.14 SeaMonkey/2.0.14 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Converting time formats References: <4DE124C2.3050809@gmail.com> <201105281850.56873.wonko@wonkology.org> In-Reply-To: <201105281850.56873.wonko@wonkology.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 686a1f304f3532413d6b1864ad379a2b Alex Schuster wrote: > 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 > > So it was the -d option. I thought that was it but I missed the @ sign. I added that to my list of common commands so I won't forget. Thanks much for both replies. Dale :-) :-)