]> granicus.if.org Git - python/commit
Bug 975996: Add _PyTime_DoubleToTimet to C API
authorTim Peters <tim.peters@gmail.com>
Sun, 20 Jun 2004 02:50:16 +0000 (02:50 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 20 Jun 2004 02:50:16 +0000 (02:50 +0000)
commit1b6f7a9057874ecd2793059f210de87837fe1911
tree950e95d9866258870fc075706b99de3fcfbf2e72
parent1c3fa18be76d1bcddb2de516913f46a32c5ed860
Bug 975996:  Add _PyTime_DoubleToTimet to C API
New include file timefuncs.h exports private API function
_PyTime_DoubleToTimet() from timemodule.c.  timemodule should export
some other functions too (look for painful bits in datetimemodule.c).

Added insane-argument checking to datetime's assorted fromtimestamp()
and utcfromtimestamp() methods.  Added insane-argument tests of these
to test_datetime, and insane-argument tests for ctime(), localtime()
and gmtime() to test_time.
Include/timefuncs.h [new file with mode: 0644]
Lib/test/test_datetime.py
Lib/test/test_time.py
Misc/NEWS
Modules/datetimemodule.c
Modules/timemodule.c