summaryrefslogtreecommitdiff
path: root/Lib/test/test_datetime.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-06-19 20:48:43 +0000
committerBrett Cannon <bcannon@gmail.com>2004-06-19 20:48:43 +0000
commit298c380c74294bedcc0b5999c57e3aca03fb3731 (patch)
tree3064e192d47ff9049f27351158641410628cd0ef /Lib/test/test_datetime.py
parentcdc7923f6d1c9731d81f299569b1ea72de7eb212 (diff)
downloadcpython-git-298c380c74294bedcc0b5999c57e3aca03fb3731.tar.gz
Raise ValueError when value being stored in a time_t variable will result in
more than a second of precision. Primarily affects ctime, localtime, and gmtime. Closes bug #919012 thanks to Tim Peters' code. Tim suggests that the new funciton being introduced, _PyTime_DoubletoTimet(), should be added to the internal C API and then used in datetime where appropriate. Not being done now for lack of time.
Diffstat (limited to 'Lib/test/test_datetime.py')
0 files changed, 0 insertions, 0 deletions