LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-23-2003, 06:26 AM   #1
chamkila
Member
 
Registered: Nov 2001
Distribution: Redhat 7.3 Slackware 8.1
Posts: 87

Rep: Reputation: 15
squid timestamps


HI,

I have a Squid Proxy server, I have one question about it the timestamps in the access log are in unix time format how would I convert it to normally time.


THanks
 
Old 05-08-2003, 08:59 AM   #2
vladkrack
Member
 
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
You could use:

date -d '1970-01-01 $TIME sec' +"%a %h %d %T %z %Y"

Ps: consider only integer values, so if appears 1052233649.017 consider only 1052233649 as TIME....

Last edited by vladkrack; 05-08-2003 at 09:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
archives, file timestamps and touch digitalgravy Linux - General 6 02-08-2006 07:47 PM
solaris ping timestamps plata Solaris / OpenSolaris 8 05-27-2005 01:36 PM
no file access timestamps being updated! takahaya Linux - General 4 04-03-2005 06:48 PM
VSFTPD and file timestamps t3___ Linux - Newbie 4 01-21-2004 02:26 PM
Timestamps Config Programming 2 04-22-2002 02:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration