Re: pytz and Python timezones

2016-06-12 Thread Carl Meyer
Hi Johannes, On 06/11/2016 05:37 AM, Johannes Bauer wrote: > I try to create a localized timestamp > in the easiest possible way. So, intuitively, I did this: > > datetime.datetime(2016,1,1,0,0,0,tzinfo=pytz.timezone("Europe/Berlin")) That is indeed intuitive, but unfortunately (due to a

Re: pytz and Python timezones

2016-06-12 Thread Lawrence D’Oliveiro
On Saturday, June 11, 2016 at 11:37:38 PM UTC+12, Johannes Bauer wrote: > I try to create a localized timestamp in the easiest possible way. Localized timestamps are perhaps not as easy as you think. > So, intuitively, I did this: > >

pytz and Python timezones

2016-06-11 Thread Johannes Bauer
Hi there, first off, let me admit that I have a hard time comprehensively wrapping my head around timezones. Everything around them is much more complicated than it seems, IMO. That said, I'm trying to do things the "right" way and stumbled upon some weird issue which I can't explain. I'm unsure

Re: pytz and Python timezones

2016-06-11 Thread Irmen de Jong
On 11-6-2016 13:37, Johannes Bauer wrote: > Hi there, > > first off, let me admit that I have a hard time comprehensively wrapping > my head around timezones. Everything around them is much more > complicated than it seems, IMO. They might not seem complicated, but actually they are.