Re: Decode unixtime
Have you tried the function "ctime"?
Alex Samad wrote:
> On Fri, Jan 15, 2010 at 12:09:33AM -0700, Paul E Condon wrote:
>
>> On 20100115_051059, T o n g wrote:
>>
>>> Hi,
>>>
>>> Which tool can help me decode the Unix time? E.g., strings like
>>> 1257624539, 1258162046, 1257623988, 1257709563, etc. they are about 68
>>> days ago.
>>>
>>> Thanks
>>>
>>>
>> date contains the standard time/date handling code, but it is
>> inconvenient to give it a ten digit Unix time number. Where are you
>> getting these numbers? I suggest that you change the way you get the
>>
>
> I believe squid logs like that !
>
>
>> numbers so that they are both human readable and parsable by simple
>> code. I like date +%Y%m%d_%H%M%S
>>
>>
> [snip]
>
Reply to: