[Dnsmasq-discuss] Seconds to readable time via command line

Илья Евсеев Илья Евсеев
Fri, 11 Feb 2005 12:09:10 +0300


   Hi folks!
Simon wrote:
> Expiry time, in epoch format (seconds since start of 1970) the C library
> function ctime() will convert this, I'm not sure if there's a command
> line utility.

$ : This is a hint from Squid FAQ.
$ perl -e '$now = localtime(1107771804); print "$now\n"'
Mon Feb  7 13:23:24 2005

Cheers,
Ilya