From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JJFm2-0003uO-RR for garchives@archives.gentoo.org; Sun, 27 Jan 2008 22:14:47 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A67C1E03DF; Sun, 27 Jan 2008 22:14:45 +0000 (UTC) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.184]) by pigeon.gentoo.org (Postfix) with ESMTP id 42EA2E03DF for ; Sun, 27 Jan 2008 22:14:45 +0000 (UTC) Received: by rv-out-0910.google.com with SMTP id b22so1195740rvf.46 for ; Sun, 27 Jan 2008 14:14:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=3dFw1ghrfopAjrT4VoMzOm7EzF3xcll1lbsseSwF01c=; b=cubMbiHoV+q3Yf2U+LcWqJ27co5QLYpFhtRt+wjfEoOlTaidYLdMehmqaETvkDUOPSqhcWzuJRwA5Clo+lPUgk/BCuq9wN8BiNIQ9I0wkgLRQekQEnrXs+ukZqD+jYxKK6sfvoJFCn75QH0uJ2RkdC+7DU+vM1q4BuDnM+QGzYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cZGsR4WYmMNGqUb5SPKM1hTpWxhqJBWd2sJEratMUAw0aPGdfuHjrgArqtO/EDaUpjSqzLrXEx250cSisG17adUcrfyYfz+fhs/RBIf+DCCD/+rNXZI+JHF4BsSBtFxZ3zIJlEneC+olXGf3QiBsISJ5ycoPbE21vgdVei0rQLk= Received: by 10.142.83.4 with SMTP id g4mr2034360wfb.103.1201472084772; Sun, 27 Jan 2008 14:14:44 -0800 (PST) Received: by 10.142.218.3 with HTTP; Sun, 27 Jan 2008 14:14:44 -0800 (PST) Message-ID: <9ed554210801271414scd13310y5180abc8658e7c7e@mail.gmail.com> Date: Sun, 27 Jan 2008 17:14:44 -0500 From: "Greg Bowser" To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Time format in log files In-Reply-To: <200801272154.25376.michaelkintzios@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 Content-Disposition: inline References: <200801272154.25376.michaelkintzios@gmail.com> X-Archives-Salt: fbf1c8ed-e45f-4611-bfce-628095dd2e73 X-Archives-Hash: 1f686240c9233cd2c5192b6ff7627138 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. -- Greg On Jan 27, 2008 4:54 PM, Mick wrote: > Hi All, > > I am sure that someone has asked this before, but a cursory look doesn't bring > anything up. I am going through some logs and I cannot understand what the > time was when certain events took place: > > [1200806556] SERVICE ALERT: router.xxxxxxxxxxxxxxxxxxxxxxx > [1200806576] SERVICE ALERT: router.xxxxxxxxxxxxxxxxxxxxxxx > [1200806891] HOST ALERT: router.xxxxxxxxxxxxxxxxxxxxxxxxxx > [1200806891] > > Could you please tell me how to interpret/parse these so that they show time > in hrs:min so that I can understand it? (anything I could feed to less would > be grand). > -- > Regards, > Mick > -- gentoo-user@lists.gentoo.org mailing list