diff options
author | gweis <gerhard.weis@gmail.com> | 2017-10-13 14:21:08 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-13 14:21:08 +1000 |
commit | f0e777df9fe8cb13e2cbfb938e0a0825b88ff679 (patch) | |
tree | 97266f8d9796d4f1d2cbca929a929823a175b3fa /src/isodate/tests/test_datetime.py | |
parent | 4d704b97de5e8269c578a6ab54cedf9004d39bd3 (diff) | |
parent | 5988e988f5882300e55316abadce0a443474e458 (diff) | |
download | isodate-f0e777df9fe8cb13e2cbfb938e0a0825b88ff679.tar.gz |
Merge pull request #45 from usrenmae/master
Be able to recognize time zones with fractional hours
Diffstat (limited to 'src/isodate/tests/test_datetime.py')
-rw-r--r-- | src/isodate/tests/test_datetime.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/isodate/tests/test_datetime.py b/src/isodate/tests/test_datetime.py index 3cdfe42..85c822f 100644 --- a/src/isodate/tests/test_datetime.py +++ b/src/isodate/tests/test_datetime.py @@ -63,6 +63,16 @@ TEST_CASES = [('19850412T1015', datetime(1985, 4, 12, 10, 15), '+0400'),), DATE_EXT_WEEK_COMPLETE + 'T' + TIME_EXT_MINUTE + TZ_HOUR, '1985-W15-5T10:15+04'), + ('1985-W15-5T10:15-0430', + datetime(1985, 4, 12, 10, 15, tzinfo=FixedOffset(-4, -30, + '-0430'),), + DATE_EXT_WEEK_COMPLETE + 'T' + TIME_EXT_MINUTE + TZ_BAS, + '1985-W15-5T10:15-0430'), + ('1985-W15-5T10:15+04:45', + datetime(1985, 4, 12, 10, 15, tzinfo=FixedOffset(4, 45, + '+04:45'),), + DATE_EXT_WEEK_COMPLETE + 'T' + TIME_EXT_MINUTE + TZ_EXT, + '1985-W15-5T10:15+04:45'), ('20110410T101225.123000Z', datetime(2011, 4, 10, 10, 12, 25, 123000, tzinfo=UTC), DATE_BAS_COMPLETE + 'T' + TIME_BAS_COMPLETE + ".%f" + TZ_BAS, |