Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

this is a line from access.log file which log the access Info of Squid:

1286536351.746  41762 192.168.0.227 TCP_MISS/200 5340945 GET http://v15.lscache3.c.youtube.com/videoplayback? - DIRECT/122.160.120.150 video/x-flv

as we know the first column 1286536351.746 is representing the time stamp how can I get the date and the time from this field?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

From here.

me@host:~$ date -d @1286536351.746
Fri Oct  8 11:12:31 UTC 2010
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.