[hobbit] Unix time

Paul van Eldijk P.vanEldijk at uci.ru.nl
Tue Jul 19 20:22:54 CEST 2005


On Tuesday 19 July 2005 20:01, mario andre wrote:
> Hi friends,
>
> Somebody knows how to convert the unix time format to the utc?

You could use Perl:

    perl -le 'print scalar gmtime($time)'

or, to get local time:

    perl -le 'print scalar localtime($time)'

(fillin the unix timestamp for $time)


HTH
Paul



More information about the Xymon mailing list