public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Converting time formats
Date: Sat, 28 May 2011 21:28:47 -0500	[thread overview]
Message-ID: <4DE1AF5F.9030203@gmail.com> (raw)
In-Reply-To: <1306630097.9523.9.camel@rattus>

William Kenworthy wrote:
> As well as your other replies, check out ccze
>
> rattus ~ # esearch ccze
> [ Results for search key : ccze ]
> [ Applications found : 1 ]
>
> *  app-admin/ccze
>        Latest version available: 0.2.1-r2
>        Latest version installed: 0.2.1-r2
>        Size of downloaded files: 136 kB
>        Homepage:    http://dev.gentoo.org/~joker/ccze/ccze.txt
>        Description: A flexible and fast logfile colorizer
>        License:     GPL-2
>
>
> Pass your log through it for nicely coloured text (words like "alarm"
> and "error" are bright red to stand out) as well as converting date
> epoch on the fly, leaving it in context.
>
> BillK
>
>
>    

This was a pfl log.  It doesn't contain all that.  I used to run it 
manually but found that cron was set up to run it automajically.  Thing 
is, I wasn't sure how to tell if it was working so I checked the log 
file.  Well, the time stamp was not for human consumption, sort of like 
those little silicone bags in electronic stuff.  That lead me to reading 
the date man page which I was pretty sure was the key but just missed 
one important detail, the little @ sign.

Funny the things we run into sometimes.  I did add the command to my 
freq-commands file tho.

"This is how you convert time from the log files to human time.  Don't 
forget the @ sign.
date -d @<insert time stamp here>  "

I went back to the man page, it sort of left the @ out on mine:

        -d, --date=STRING
               display time described by STRING, not `now'

No mention of the @ sign there.  It does say to read the info file but I 
very rarely get into those.  I never have had any good luck with them.  
I felt like I was in Hotel California once before.  O_O  I couldn't get 
out.  lol

Dale

:-)  :-)



  reply	other threads:[~2011-05-29  2:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-28 16:37 [gentoo-user] Converting time formats Dale
2011-05-28 16:45 ` [gentoo-user] " Nikos Chantziaras
2011-05-28 16:50 ` [gentoo-user] " Alex Schuster
2011-05-28 17:31   ` Dale
2011-05-28 17:30 ` Florian Philipp
2011-05-29  0:48 ` William Kenworthy
2011-05-29  2:28   ` Dale [this message]
2011-05-29 10:10     ` Neil Bothwick
2011-05-29 13:55       ` Dale
2011-05-29 21:08         ` Neil Bothwick
2011-05-29 21:42           ` Dale
2011-05-29 22:18     ` Henry Gebhardt
2011-05-30  9:16       ` Florian Philipp
2011-05-29 10:08   ` Mick
2011-05-29 13:07     ` William Kenworthy
2011-05-29 13:47   ` Peter Humphrey

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=4DE1AF5F.9030203@gmail.com \
    --to=rdalek1967@gmail.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