[Zope3-dev] mini-RFC: times and timezones

Gary Poster gary at zope.com
Sat Feb 26 19:48:17 EST 2005


On Feb 26, 2005, at 7:32 PM, Marius Gedminas wrote:

> On Sat, Feb 26, 2005 at 06:23:50PM -0500, Gary Poster wrote:
>> On Feb 25, 2005, at 8:18 PM, Marius Gedminas wrote:
>>> Can we invent an obvious way to display
>>> dates and times without having to remember weird three-line
>>> incantations?
>> Maybe named views for the
>> four formatter length values would work.
>
> Path adapters for page templates could also come in handy.

Ah, yeah, good idea.

On Feb 26, 2005, at 7:51 PM, Garrett Smith wrote:
> Gary Poster wrote:
>> from pytz import utc
>> aware.astimezone(utc)
>
> Does this convert aware's timezone? Or return a new object?

Whoops, yeah, I was about to mention this in reply to Marius.  
datetimes are immutable.  That should have been

storable = aware.astimezone(utc)

I also misspelled "here" as "hear" and probably did some other silly 
things :-P :-)

Gary



More information about the Zope3-dev mailing list