summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_strptime.py
Commit message (Collapse)AuthorAgeFilesLines
* SF patch 670012: Compatibility changes for _strptime.py.Tim Peters2003-01-181-47/+38
| | | | | | | | | | | | | | | 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.
* Fix julian day problem with strptime. Note: XXX about using 0, suggestions?Neal Norwitz2002-12-261-0/+12
|
* Patch #639112: fixes for None locale and tz.Martin v. Löwis2002-11-271-56/+141
|
* Brett's fixes for various bugs and coding issues. Closes SF patch #Barry Warsaw2002-09-231-7/+26
| | | | | 593560, with some minor cleanups, line folding and whitespace normalization by Barry.
* Delete the %c test from test_date_time() untill Brett Cannon has timeGuido van Rossum2002-09-031-2/+2
| | | | | | to fix it. (It fails when the day of the month is a 1-digit number, because %c produces space+digit there, while strptime seems to expect zero+digit somehow.)
* The test I saw failing this morning just happened to be run at 8amBarry Warsaw2002-08-291-0/+12
| | | | | | | | localtime, which in -0400 is 12 noon GMT. The bug boiled down to broken conversion of 12 PM to hour 12 for the '%I %p' format string. Added a test for this specific condition: Strptime12AMPMTests. Fix to _strptime.py coming momentarily.
* Standardize behavior: no docstrings in test functions; add a properGuido van Rossum2002-08-221-46/+44
| | | | test_main() that creates a suite and runs it. Don't mess with sys.path!!!
* Whitespace normalization.Tim Peters2002-08-081-10/+10
|
* Pure Python strptime implementation by Brett Cannon. See SF patch 474274.Guido van Rossum2002-07-191-0/+279
Also adds tests.