A few basic functions are
localtime or gmtime from the Time::Local module in standard perl distributions.
Date::Manip and Date::Calc in CPAN modules