Xymon Mailing List Archive search

V0.2.0 of adminscripts

list Stefan Freisler
Tue, 9 Jan 2007 16:15:11 +0100
Message-Id: <user-5eed2296fa29@xymon.invalid>

Hi,
its is not difficult to create an timestamp but to create an timestamp like date it does is difficult:


perl -e 'use Date::Manip qw(ParseDate UnixDate);$date=&ParseDate("2007/01/08 15:45");print(UnixDate( $date , "%s" ));'

is one thing i have found but my solaris 9 don't Support it. Does anyone know an other solution to transform

2007/01/08 15:45

to

1168267500

Can someone test my solution on Solaris 10 or other Unixes?

thx
Stefan