summaryrefslogtreecommitdiffstats
path: root/Lib/_strptime.py
Commit message (Collapse)AuthorAgeFilesLines
...
* use == like all the other conditionalsNeal Norwitz2003-06-291-1/+1
|
* Call time.tzset (if available) just before calculating possible timezones ↵Brett Cannon2003-05-131-0/+4
| | | | from time.tzname.
* Beefed up timezone support. UTC and GMT are now always recognized timezonesBrett Cannon2003-05-111-7/+15
| | | | | with values of 0. Also now check time.daylight to see if time.tzname[1] should be used in timezone checking.
* Raise a ValueError when there is data that was not covered in the format ↵Brett Cannon2003-04-281-0/+3
| | | | string. Done to match behavior of pre-existing C-based strptime implementations.
* Whitespace normalization.Tim Peters2003-04-241-3/+2
|
* Make _strptime escape regex syntax in format string to prevent use in ↵Brett Cannon2003-04-191-1/+10
| | | | internal regex.
* SF patch #691928: Use datetime in _strptimeRaymond Hettinger2003-03-091-56/+18
| | | | | | | | | | | | Contributed by Brett Cannon. To prevent code duplication, I patched _strptime to use datetime's date object to do Julian day, Gregorian, and day of the week calculations. Patch also includes new regression tests to test results and the calculation gets triggered. Very minor comment changes and the contact email are also changed.
* Whitespace normalization.Tim Peters2003-01-291-3/+3
|
* SF patch 670194: Performance enhancement for _strptime.py.Tim Peters2003-01-191-20/+36
| | | | | From Brett Cannon. Mostly speedups via caching format string -> compiled regexp.
* SF patch 670012: Compatibility changes for _strptime.py.Tim Peters2003-01-181-91/+89
| | | | | | | | | | | | | | | Patch from Brett Cannon: First, the 'y' directive now handles [00, 68] as a suffix for the 21st century while [69, 99] is treated as the suffix for the 20th century (this is for Open Group compatibility). strptime now returns default values that make it a valid date ... the ability to pass in a regex object to use instead of a format string (and the inverse ability to have strptime return a regex object) has been removed. This is in preparation for a future patch that will add some caching internally to get a speed boost.
* Checking in Brett Cannon's patch #662053, which fixes bug #661354.Jack Jansen2003-01-151-8/+12
| | | | _strptime can now handle getting two empty strings as the timezone information.
* Fix SF #658820, regex fixes for _strptime (Brett Cannon)Neal Norwitz2002-12-301-8/+9
| | | | Disallow zero for days and months
* Fix julian day problem with strptime. Note: XXX about using 0, suggestions?Neal Norwitz2002-12-261-1/+3
|
* Patch #639112: fixes for None locale and tz.Martin v. Löwis2002-11-271-5/+13
|
* Brett's fixes for various bugs and coding issues. Closes SF patch #Barry Warsaw2002-09-231-61/+69
| | | | | 593560, with some minor cleanups, line folding and whitespace normalization by Barry.
* Many hopefully benign style clean ups. Still passes the test suite ofBarry Warsaw2002-08-291-172/+200
| | | | course.
* strptime(): The code that was adding 12 to PM hours was incorrectBarry Warsaw2002-08-291-5/+12
| | | | | | | | | because it added it to 12 PM too. 12 PM should be hour 12 not hour 24. Also cleaned up a minor style nit. There are more style problems in this file that I'll clean up next (but I didn't want them to overwhelm the substance of this fix).
* Whitespace normalization.Tim Peters2002-08-081-40/+40
|
* Pure Python strptime implementation by Brett Cannon. See SF patch 474274.Guido van Rossum2002-07-191-0/+488
Also adds tests.