pauld wrote:
>
im using Date::Manip to convert dates and times eg 2007:08:02 12:23
to allow me to sort them, which it does .
but I cant see how to get the number back into a human -readable
format
print scalar localtime($var{STARTTIME}); prints the long string . is
there a better way to get just the bits I want , or do I have to
parse the string I get from print scalar localtime output ?
Have you read the documentation for Date::Manip?
The UnixDate() function will do what you want. Something like
print UnixDate($date, '%Y:%m:%d %H:%M');
for instance, which will reproduce the date in the format you have
shown.
HTH,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/