[ABE.pm] time processing

Ted Fiedler fiedlert at gmail.com
Mon Nov 19 10:13:52 PST 2007


>
>
>
> Ugh!
>

This is why I ask the questions :)


>
>  my $hms = DateTime::Format::Strptime->new(pattern => '%T');
>  my $datetime = $hms->parse_datetime('12:23:34');


That returns '00001-01-01T12:23:34'

This doesn't seem to do what I need. I need a time not a datetime such as 1
hour 54 minues 18 seconds (01:54:18) to be converted to seconds, divided by
a distance (13.1) , and turnd back into a time ( pace ) such as 8 minutes 44
seconds, but formatted as 8:44. Precise may be overkill, but so far the only
module, that Ive found to do this. Or am I missing the boat here?

Ted

-- 
If you mess with a thing long enough, it'll break.
               -- Schmidt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/abe-pm/attachments/20071119/4d55529a/attachment.html 


More information about the ABE-pm mailing list