Movatterモバイル変換


[0]ホーム

URL:


Outputting

brey at ductape.netbrey at ductape.net
Tue Apr 3 14:21:22 EDT 2001


I'm using smtplib to send an email message, and I'd like to put a Date: linein the header.  However, formatting the timezone portion of the date linecorrectly seems to be a real highly non-trivial.  time.strftime only outputsthe time zone as a string, and none of the variables in the time module areeasy to convert to the -600 style format.  Ironically, there isrfc822.parsedate, which does the opposite of what I need (and is probablymuch harder to write).Is there a module that I'm missing that will take a time tuple and output theproper RFC 822 date string?Thanks in advance,Ed -----  Posted via NewsOne.Net: Free (anonymous) Usenet News via the Web  -----http://newsone.net/ -- Free reading and anonymous posting to 60,000+ groups   NewsOne.Net prohibits users from posting spam.  If this or other postsmade through NewsOne.Net violate posting guidelines, emailabuse at newsone.net


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp