in reply to Getting "A.M." and "P.M." with localtime $time

Date::Calc

CPAN is your friend; it's almost always best to look there before asking anywhere else.

--
The hell with paco, vote for Erudil!
:wq