use POSIX qw/strftime/; print strftime("%FT%H:%M:%S%z", localtime); __END__ 2007-05-28T12:09:27+0200