Xymon Mailing List Archive search

Unix time

list Paul van Eldijk
Tue, 19 Jul 2005 20:22:54 +0200
Message-Id: <user-3d18ccb3ddad@xymon.invalid>

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