in reply to Formating Date and Time
Date::Calc is big if you use it all, but you can designate which routines you want to pull in:
use Date::Calc qw( Days_in_Year Days_in_Month ... ); [download]
(right from the doc)