Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #27729

Re: Python3.3 email policy date field

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail
From Helmut Jarausch <jarausch@igpm.rwth-aachen.de>
Newsgroups comp.lang.python
Subject Re: Python3.3 email policy date field
Date 23 Aug 2012 12:30:36 GMT
Lines 14
Message-ID <a9mm3cF896U2@mid.dfncis.de> (permalink)
References <a9m80dF896U1@mid.dfncis.de> <mailman.3712.1345721756.4697.python-list@python.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace news.dfncis.de NwSZ6Rz4xzK2ntSwRP0RwgbNjedoLrY4eFXLpL7De/0VI1260gDkh4txWlo9gjJB/id12+ycsP
Cancel-Lock sha1:tTYNk75x+jyVkC7/FHmX5jiIOAU=
User-Agent Pan/0.137 (The Mattel and Mars Bar Quick Energy Chocobot Hour; GIT 9a6aef1 git://git.gnome.org/pan2)
Xref csiph.com comp.lang.python:27729

Show key headers only | View raw


On Thu, 23 Aug 2012 12:36:01 +0100, MRAB wrote:
>  From what I've tried, it looks like the date can't be a string:
> 
>  >>> m['Date'] = datetime.datetime.utcnow()
>  >>> m['Date']
> 'Thu, 23 Aug 2012 11:33:20 -0000'

Many thanks - it's even easier!

Waiting for Python 3.3 to become standard!

Helmut.

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Python3.3 email policy date field Helmut Jarausch <jarausch@igpm.rwth-aachen.de> - 2012-08-23 08:30 +0000
  Re: Python3.3 email policy date field MRAB <python@mrabarnett.plus.com> - 2012-08-23 12:36 +0100
    Re: Python3.3 email policy date field Helmut Jarausch <jarausch@igpm.rwth-aachen.de> - 2012-08-23 12:30 +0000

csiph-web