in reply to Time in Perl

There is, as the manual points out localtime will do what you seek.

--
perl -pew "s/\b;([mnst])/'$1/g"