[issue17267] datetime.time support for '+' and 'now'
Joar Wandborg added the comment: New patch, removed whitespace change and unnecessary test. add_time_timedelta arg `factor` will not be changed, in order to preserve uniformity. -- Added file: http://bugs.python.org/file29251/issue17267-v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17267] datetime.time support for '+' and 'now'
Joar Wandborg added the comment: I am adding yet another patch. This time it has - TZ-aware tests (datetimetester.TestTimeTZ). - C time_subtract method. - Pure time.__sub__ method. in addition to the previous - Tests for time + timedelta - C time_add - Pure time.__add__ There's one issue though, and that is that I have not quite figured out TZ-aware cross-TZ `time - timedelta` i.e. time(0, tzinfo=est) - timedelta(hours=1) * 5 == time(0, tzinfo=utc) fails. I have included a failing test for it. -- Added file: http://bugs.python.org/file29225/issue17267-v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17267] datetime.time support for '+' and 'now'
Joar Wandborg added the comment: Patch submitted, please review. -- keywords: +patch nosy: +joar Added file: http://bugs.python.org/file29200/issue17267.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17267] datetime.time support for '+' and 'now'
Joar Wandborg added the comment: New patch adressing the review comments. -- Added file: http://bugs.python.org/file29205/issue17267.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17267 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com