use POSIX qw(strftime); print strftime("%a at %I:%M%p on %m/%d/%Y", localtime());