in reply to net::smtp and date field

What is timegm? ( What makes a bad question? Before You Post ... How (Not) To Ask A Question )

Are you aware of gmtime (perldoc perlfunc)?

Are you aware of POSIX's strftime?

What exactly is RFC822 date-time format? (i looked, so what is your date supposed to look like)

Isn't int redundant in sprintf("%+03d", int($offset)) ? (i think so)

perl -MPOSIX=strftime -e die~~strftime('%Z',gmtime)

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.