As mentioned by others,
DateTime,
Date::Calc, or
Date::Manip can do this. There were some
benchmark posts recently on the datetime list. I think these are fairly reflective of just about anything all three modules do, though, depending on your needs, any of them may be perfectly fine.