source: pyyaml/trunk/tests/data/timestamp-bugs.code @ 234

Revision 234, 380 bytes checked in by xi, 8 years ago (diff)

Fix loss of microsecond precision in datetime.datetime constructor (fix #30).
Thanks to edemaine@… for the bug report and the patch.

RevLine 
[225]1[
2    datetime.datetime(2001, 12, 15, 3, 29, 43, 100000),
3    datetime.datetime(2001, 12, 14, 16, 29, 43, 100000),
4    datetime.datetime(2001, 12, 14, 21, 59, 43, 1010),
5    datetime.datetime(2001, 12, 14, 21, 59, 43, 0, FixedOffset(60, "+1")),
6    datetime.datetime(2001, 12, 14, 21, 59, 43, 0, FixedOffset(-90, "-1:30")),
[234]7    datetime.datetime(2005, 7, 8, 17, 35, 4, 517600),
[225]8]
Note: See TracBrowser for help on using the repository browser.