[issue29885] Allow GMT timezones to be used in datetime.

2017-11-24 Thread Decorater
Change by Decorater : -- stage: -> resolved status: open -> closed ___ Python tracker ___

[issue29885] Allow GMT timezones to be used in datetime.

2017-03-23 Thread Martin Panter
Martin Panter added the comment: Does the “astimezone” method work for you? >>> from datetime import * >>> aedt = timezone(+timedelta(hours=11)) >>> local = datetime.now(aedt) >>> format(local) '2017-03-23

[issue29885] Allow GMT timezones to be used in datetime.

2017-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use pytz (https://pypi.python.org/pypi/pytz). -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue29885] Allow GMT timezones to be used in datetime.

2017-03-23 Thread Decorater
New submission from Decorater: I noticed that there is no ways to convert local times to GMT if I realize that some other object (sometimes from a server) is using GMT and they happen to be ahead of my current time. As such it would be great if one can convert their current time that can be