Python 3.3 を使用しています。IMAP サーバーから電子メールを取得し、それを標準の電子メール ライブラリから電子メールのインスタンスに変換しています。
私はこれをします:
message.get("date")
たとえば、次のようになります。
Wed, 23 Jan 2011 12:03:11 -0700
time.strftime()
これをうまくフォーマットできるように、これを入れられるものに変換したいと思います。UTC ではなく、現地時間で結果が必要です。
非常に多くの関数、非推奨のアプローチ、およびサイド ケースがあり、最新のルートが不明ですか?