From: SourceForge.net <no...@so...> - 2010-09-15 04:19:13
|
Bugs item #3065838, was opened at 2010-09-14 12:36 Message generated for change (Settings changed) made by a1s You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=746843&aid=3065838&group_id=140566 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Pending Resolution: None Priority: 5 Private: No Submitted By: jno (jno-) Assigned to: Nobody/Anonymous (nobody) Summary: Y2K problem proving Initial Comment: I have a government-provided (read as "unfixable") application (sample DBF is attached) where anyone can see year "1909" using the module. I afraid, that two-digit wrapping is NOT performed by time.strptime in 2.6.5. ---------------------------------------------------------------------- >Comment By: alexander smishlajev (a1s) Date: 2010-09-15 07:19 Message: > sample DBF is attached) where anyone can see year "1909" using the module. the attached file contains neither date nor datetime fields. > I afraid, that two-digit wrapping is NOT performed by time.strptime in 2.6.5. Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> time.strptime("090807", "%y%m%d") time.struct_time(tm_year=2009, tm_mon=8, tm_mday=7, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=4, tm_yday=219, tm_isdst=-1) >>> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=746843&aid=3065838&group_id=140566 |