[issue35796] time.localtime returns error for negative values

2019-02-10 Thread Ammar Askar
Ammar Askar added the comment: Victor is correct, this is a limitation in Windows. As the documentation for time notes: >Although this module is always available, not all functions are available on >all platforms. Most of the functions defined in this module call platform C >library

[issue35796] time.localtime returns error for negative values

2019-01-21 Thread STINNER Victor
STINNER Victor added the comment: It's a limitation of the Windows C library. I'm quite sure that Python 2 has a the same issue, it shouldn't be a regression. -- nosy: +vstinner ___ Python tracker

[issue35796] time.localtime returns error for negative values

2019-01-21 Thread Mba
New submission from Mba : Steps to reproduce the bug: ``` >>> import sys >>> sys.version '3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 13:35:33) [MSC v.1900 64 bit (AMD64)]' >>> import datetime >>> print(datetime.datetime.now().astimezone().tzinfo) datetime.timezone(datetime.timedelta(0, 3600),