[Patches] [ python-Patches-691928 ] Use datetime in _strptime
SourceForge.net
noreply@sourceforge.net
Tue, 25 Feb 2003 13:51:28 -0800
Patches item #691928, was opened at 2003-02-23 16:07
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=691928&group_id=5470
Category: Library (Lib)
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Brett Cannon (bcannon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Use datetime in _strptime
Initial Comment:
To prevent code duplication, I patched _strptime to use datetime's date object to do Julian day, Gregorian, and day of the week calculations (Tim's code has to be more reliable than mine =). Patch also includes new regression tests to test results and calculation gets triggered.
Very minor comment changes and my contact email are also changed.
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2003-02-25 13:51
Message:
Logged In: YES
user_id=357491
Only in the module (which was removed). None of the helper functions have ever been publicly advertised (although I think the locale date info might be helpful in locale; MvL wasn't interested, though).
I uploaded a new diff that removes one more line that I forgot to remove when I eliminated the ability to pass in a regex object.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-02-23 16:56
Message:
Logged In: YES
user_id=33168
Brett, is there any doc for the functions that were removed?
firstjulian, gregorian, julianday, dayofweek
Otherwise, the patch seemed fine (but I didn't look that
closely).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=691928&group_id=5470