On Sunday 16 December 2007 04:31, 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
Use the UnixDate() function that comes with Date::Manip. > 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 ? Use localtime in list context instead. perldoc -f localtime John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/