Re: [Zope3-dev] Re: OT: pytz

2006-08-07 Thread Dieter Maurer
Florent Guillaume wrote at 2006-8-7 12:53 +0200: >On 5 Aug 2006, at 22:38, Dieter Maurer wrote: >> Florent Guillaume wrote at 2006-8-5 00:17 +0200: >>> Stuart Bishop wrote: >>> ... I've been wondering if making pytz work like this was a correct decision. It seems that people who kn

Re: [Zope3-dev] Re: OT: pytz

2006-08-07 Thread Florent Guillaume
On 5 Aug 2006, at 22:38, Dieter Maurer wrote: Florent Guillaume wrote at 2006-8-5 00:17 +0200: Stuart Bishop wrote: ... I've been wondering if making pytz work like this was a correct decision. It seems that people who know enough to care about DST transition periods generally work in UTC a

Re: [Zope3-dev] Re: OT: pytz

2006-08-05 Thread Dieter Maurer
Florent Guillaume wrote at 2006-8-5 00:17 +0200: >Stuart Bishop wrote: > ... >> I've been wondering if making pytz work like this was a correct decision. It >> seems that people who know enough to care about DST transition periods >> generally work in UTC anyway > >What makes you say that? Any appl

[Zope3-dev] Re: OT: pytz

2006-08-04 Thread Florent Guillaume
Stuart Bishop wrote: Ignas Mikalajunas wrote: Thanks. I'd seen localize() in the README but all the examples have an explicit is_dst passed which I didn't want. I didn't realize that without it it would guess the right one (except during the 1h ambiguous period). Florent The is_dst parameter i

Re: [Zope3-dev] Re: OT: pytz

2006-08-03 Thread Stuart Bishop
Ignas Mikalajunas wrote: >> Thanks. I'd seen localize() in the README but all the examples have an >> explicit is_dst passed which I didn't want. I didn't realize that >> without it it would guess the right one (except during the 1h ambiguous >> period). >> >> Florent > > The is_dst parameter is m

Re: [Zope3-dev] Re: OT: pytz

2006-07-28 Thread Ignas Mikalajunas
Thanks. I'd seen localize() in the README but all the examples have an explicit is_dst passed which I didn't want. I didn't realize that without it it would guess the right one (except during the 1h ambiguous period). Florent The is_dst parameter is more like "If it is ambiguous prefer DST", ev

[Zope3-dev] Re: OT: pytz

2006-07-27 Thread Florent Guillaume
Marius Gedminas wrote: On Mon, Jul 24, 2006 at 01:08:39AM +0200, Florent Guillaume wrote: Sorry about the offtopic, but can anyone shed some light on this: import pytz from datetime import datetime tz = pytz.timezone('Europe/Paris'); print datetime(2006, 7, 1, tzinfo=tz).utcoffset() 0:09:00