public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Jorge Almeida <jalmeida@math.ist.utl.pt>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] date in emerge logs
Date: Sat, 28 Oct 2006 00:36:59 +0100 (WEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0610280032020.21181@jmaa.math.ist.utl.pt> (raw)
In-Reply-To: <200610272044.55801.peter.ruskin@dsl.pipex.com>

On Fri, 27 Oct 2006, Peter Ruskin wrote:
>> 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...
> 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
>
Thanks, but that's not what I meant. I have a script that acts as a
filter, and sometimes lines include unix-time dates. So I suppose that
awk it is, since "date" will choke on input other than proper dates.

Cheers.
-- 
Jorge Almeida
-- 
gentoo-user@gentoo.org mailing list



      reply	other threads:[~2006-10-27 23:41 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
2006-10-27 23:36       ` Jorge Almeida [this message]

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=Pine.LNX.4.64.0610280032020.21181@jmaa.math.ist.utl.pt \
    --to=jalmeida@math.ist.utl.pt \
    --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