use POSIX 'strftime'; # ... say POSIX::strftime('%a, %d %b %Y %T %z', localtime);