in reply to conversion of time intervals

Date::Manip will do this. Read all the caveats in the docs though...