There is support for both methods in the perl module DateTime.pm. Maybe
check that out.
From: Platform Independent Linux List! [mailto:[log in to unmask]] On
Behalf Of Mauricio Tavares
Sent: Friday, October 12, 2007 8:14 AM
To: [log in to unmask]
Subject: 12h to 24h time in perl
What would be the best way to convert time given in a 12h clock
(as in 12:52 AM) format into 24h clock (00:52) using perl? I have a file
full of data which was recorded in that format and would like to convert
it to the 24h style...
...unless there is a clever way to feed that right into gnuplot. ;)