Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

1286536351.746  41762 TCP_MISS/200 5340945 GET http://v15.lscache3.c.youtube.com/videoplayback? - DIRECT/ 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
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


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.