Koozali.org: home of the SME Server

Converting tai64n to human readable

Offline GlitchFreak

  • ****
  • 97
  • +0/-0
Converting tai64n to human readable
« on: May 20, 2008, 12:07:12 AM »
Hey there

Is there any way I can reformat my logs so that the timestamps are in human readable format?

Thanks!
G

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Converting tai64n to human readable
« Reply #1 on: May 20, 2008, 12:23:39 AM »
Hey there

Is there any way I can reformat my logs so that the timestamps are in human readable format?

Thanks!
G
You could either view them through the server-manager as there all date formats should be in a standard date format. Otherwise something like this:

Code: [Select]
cat /var/log/filename | tai64nlocal
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline GlitchFreak

  • ****
  • 97
  • +0/-0
Re: Converting tai64n to human readable
« Reply #2 on: May 20, 2008, 08:21:18 PM »
You could either view them through the server-manager as there all date formats should be in a standard date format. Otherwise something like this:

Code: [Select]
cat /var/log/filename | tai64nlocal

Thanks!

Would it be possible to change a setting somewhere so that the times are logged in human readable time always, never in tai64n?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Converting tai64n to human readable
« Reply #3 on: May 20, 2008, 11:47:25 PM »
Thanks!

Would it be possible to change a setting somewhere so that the times are logged in human readable time always, never in tai64n?
Not that I'm aware of...
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)