public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Peter Ruskin <peter.ruskin@dsl.pipex.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] date in emerge logs
Date: Fri, 27 Oct 2006 20:44:55 +0100	[thread overview]
Message-ID: <200610272044.55801.peter.ruskin@dsl.pipex.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0610271931390.21181@jmaa.math.ist.utl.pt>

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



  reply	other threads:[~2006-10-27 19:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-27  9:55 [gentoo-user] date in emerge logs Jorge Almeida
2006-10-27 10:13 ` [gentoo-user] " Harm Geerts
2006-10-27 10:22 ` [gentoo-user] " Neil Bothwick
2006-10-27 10:42   ` [gentoo-user] " Harm Geerts
2006-10-27 11:39     ` Neil Bothwick
2006-10-27 10:30 ` [gentoo-user] " Bo Ørsted Andresen
2006-10-27 11:08   ` Peter Ruskin
2006-10-27 12:30     ` Jorge Almeida
2006-10-27 18:28 ` Richard Fish
2006-10-27 18:34   ` Jorge Almeida
2006-10-27 19:44     ` Peter Ruskin [this message]
2006-10-27 23:36       ` Jorge Almeida

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200610272044.55801.peter.ruskin@dsl.pipex.com \
    --to=peter.ruskin@dsl.pipex.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox