[issue25428] Have `datetime` understand integer arguments for timezones

2015-11-06 Thread leewz
leewz added the comment: Thanks. Will visit them. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25428] Have `datetime` understand integer arguments for timezones

2015-10-16 Thread leewz
New submission from leewz: Current: If I want to create a datetime object with a particular timezone offset, I have to do this: import datetime mytime = datetime.datetime(2015, 10, 16, 9, 13, 0, tzinfo=datetime.timezone(datetime.timedelta(hours=-7))) Or with imports: from

[issue25428] Have `datetime` understand integer arguments for timezones

2015-10-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +belopolsky, lemburg versions: -Python 3.5 ___ Python tracker ___

[issue25428] Have `datetime` understand integer arguments for timezones

2015-10-16 Thread R. David Murray
R. David Murray added the comment: timezone is relatively new. Work is in progress to add better timezone support to datetime, but it is a complicated subject and may or may not make it into 3.6. In any case I think it is too soon to talk about this kind of API change, before the other work