Re: Improving support for timezones in Python (was: UTC "timezone" causing brain explosions)

2014-01-30 Thread Chris Angelico
On Fri, Jan 31, 2014 at 1:26 PM, Ben Finney wrote: > He also reinforces the message that UTC is the canonical timezone for > storing and manipulating timestamp values, and we should be converting > to/from those canonical values as early/late as possible in our programs. Call it a "UTC Sandwich",

Improving support for timezones in Python (was: UTC "timezone" causing brain explosions)

2014-01-30 Thread Ben Finney
Ben Finney writes: > Time zones are a hairy beast to manage, made all the more difficult > because national politicians continually fiddle with them which means > they can't just be a built-in part of the Python standard library. PyCon 2013 had a good talk on calendaring and timezone issues http

Re: Timezones in python

2007-12-06 Thread lukasz . f24
On 5 Dec, 13:59, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 05 Dec 2007 06:43:49 -0300, <[EMAIL PROTECTED]> escribió: > > > Thanks guys for your answers! I know those library's but I was > > wondering is there something build-in for this simple convert convert. > > I have to do it onl

Re: Timezones in python

2007-12-05 Thread Gabriel Genellina
En Wed, 05 Dec 2007 06:43:49 -0300, <[EMAIL PROTECTED]> escribió: > Thanks guys for your answers! I know those library's but I was > wondering is there something build-in for this simple convert convert. > I have to do it only from +4 to +0. Copying the example from the tzinfo docs: from dateti

Re: Timezones in python

2007-12-05 Thread lukasz . f24
Thanks guys for your answers! I know those library's but I was wondering is there something build-in for this simple convert convert. I have to do it only from +4 to +0. -- http://mail.python.org/mailman/listinfo/python-list

Re: Timezones in python

2007-12-05 Thread Christian Heimes
[EMAIL PROTECTED] wrote: > Is there any build in solution in python to handle timezones? My > problem is I have to convert +4 time to +0. In the worst case i can > just add +4 to the houer but I'm not very happy about that. Another > problem is the summer/winter timechange which happen with one wee

Re: Timezones in python

2007-12-05 Thread Matt Nordhoff
[EMAIL PROTECTED] wrote: > Is there any build in solution in python to handle timezones? My > problem is I have to convert +4 time to +0. In the worst case i can > just add +4 to the houer but I'm not very happy about that. Another > problem is the summer/winter timechange which happen with one wee

Timezones in python

2007-12-05 Thread lukasz . f24
Hello, Is there any build in solution in python to handle timezones? My problem is I have to convert +4 time to +0. In the worst case i can just add +4 to the houer but I'm not very happy about that. Another problem is the summer/winter timechange which happen with one week difference. I am lookin