http://www.perlmonks.org?node_id=1004334


in reply to Want to format date and time

This will give you most of what you need. Please let us know if you're missing anything else...