Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Clear out the regex cache when the TimeRE cache is invalidated by a locale | Brett Cannon | 2005-09-15 | 1 | -1/+2 |
| | | | | | | change. Fixes bug #1290505. | ||||
* | Fix logic error introduced in last commit. Also add a comment to explain what | Brett Cannon | 2005-08-29 | 1 | -2/+5 |
| | | | | the code is doing. | ||||
* | fix bug where str.find() was being misused where __contains__ should have been | Brett Cannon | 2005-08-27 | 1 | -1/+1 |
| | | | | used. | ||||
* | Fix bug of implementation of algorithm for calculating the date from year, week | Brett Cannon | 2004-10-28 | 1 | -10/+12 |
| | | | | | | | | of the year, and day of the week. Was not taking into consideration properly the issue of when %U is used for the week of the year but the year starts on Monday. Closes bug #1045381 again. | ||||
* | Fix comments. | Brett Cannon | 2004-10-18 | 1 | -2/+4 |
| | |||||
* | Add support for %U and %W to contribute to calculating the date when the year | Brett Cannon | 2004-10-18 | 1 | -1/+43 |
| | | | | | | and day of the week are specified. Closes bug #1045381. | ||||
* | Fix bug introduced by the previous patch by changing TimeRE.__seqToRe() to | Brett Cannon | 2004-10-06 | 1 | -2/+1 |
| | | | | accept any iterable instead of only a sliceable object. | ||||
* | Convert a listcomp to a gencomp (was already editing code). | Brett Cannon | 2004-10-06 | 1 | -2/+2 |
| | |||||
* | Locale data that contains regex metacharacters are now properly escaped. | Brett Cannon | 2004-10-06 | 1 | -2/+4 |
| | | | | Closes bug #1039270. | ||||
* | Replace str.find()!=1 with the more readable "in" operator. | Raymond Hettinger | 2004-05-04 | 1 | -1/+1 |
| | |||||
* | Deal with possible case of having time.tzname[1] containing UTC or GMT. | Brett Cannon | 2004-03-07 | 1 | -2/+2 |
| | | | | | | Since it is known ahead of time that UTC and GMT always have no DST adjustment then just set the isdst value to 0 even if tzname[0] == tzname[1] . Fixes bug #897817 . | ||||
* | Whitespace normalization. | Tim Peters | 2004-01-18 | 1 | -1/+1 |
| | |||||
* | * Migrate set() and frozenset() from the sandbox. | Raymond Hettinger | 2003-11-16 | 1 | -4/+3 |
| | | | | | | | | * Install the unittests, docs, newsitem, include file, and makefile update. * Exercise the new functions whereever sets.py was being used. Includes the docs for libfuncs.tex. Separate docs for the types are forthcoming. | ||||
* | Let library modules use the new keyword arguments for list.sort(). | Raymond Hettinger | 2003-10-16 | 1 | -11/+9 |
| | |||||
* | Make sure parentheses are escaped when used in the format string. | Brett Cannon | 2003-08-29 | 1 | -1/+1 |
| | | | | Closes bug #796149 . Will be backported. | ||||
* | Fix handling of bad locale setup where time.tzname[0] == time.tzname[1] and | Brett Cannon | 2003-08-11 | 1 | -10/+19 |
| | | | | | | time.daylight is true. Add an explicit test for this situation. Fixed some wording in docstrings. | ||||
* | Fix docstring in LocaleTime. | Brett Cannon | 2003-08-08 | 1 | -2/+2 |
| | |||||
* | Re-introduce caching of TimeRE and compiled regexes with added thread-safety. | Brett Cannon | 2003-08-05 | 1 | -275/+136 |
| | | | | | | | | | | | | Also remove now unnecessary property attributes for thread safety (no longer have lazy attributes) and code simplicity reasons. Timezone storage has been reworked to be simpler and more flexible. All values in LocaleTime instances are lower-cased. This is all done to simplify the module. The module now assumes nothing beyond the strptime function will be exposed for general use beyond providing functionality for strptime. | ||||
* | Fixes bug of having default argument for TimeRE's __init__ that caused the | Brett Cannon | 2003-07-24 | 1 | -2/+5 |
| | | | | | LocaleTime instance to only be created once and thus not be recreated when the locale changed. | ||||
* | Remove caching of TimeRE (and thus LocaleTime) instance. Error was being | Brett Cannon | 2003-07-24 | 1 | -41/+13 |
| | | | | | | caught when executing test_strptime, test_logging, and test_time in that order when the testing of "%c" occured. Suspect the cache was not being recreated (the test passed when test_logging was forced to re-establish the locale). | ||||
* | SF 748201: time.strptime() should display format and date on error | Raymond Hettinger | 2003-07-13 | 1 | -1/+2 |
| | | | | Usability fix. Makes the error message more helpful. | ||||
* | Fixes bug of timezone value being left as -1 when ``time.tzname[0] == | Brett Cannon | 2003-07-03 | 1 | -4/+5 |
| | | | | | | | time.tzname[1] and not time.daylight`` is true when it should only when time.daylight is true. Tests are also fixed. Closes bug #763047 and its cohort #763052. | ||||
* | use == like all the other conditionals | Neal Norwitz | 2003-06-29 | 1 | -1/+1 |
| | |||||
* | Call time.tzset (if available) just before calculating possible timezones ↵ | Brett Cannon | 2003-05-13 | 1 | -0/+4 |
| | | | | from time.tzname. | ||||
* | Beefed up timezone support. UTC and GMT are now always recognized timezones | Brett Cannon | 2003-05-11 | 1 | -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 Cannon | 2003-04-28 | 1 | -0/+3 |
| | | | | string. Done to match behavior of pre-existing C-based strptime implementations. | ||||
* | Whitespace normalization. | Tim Peters | 2003-04-24 | 1 | -3/+2 |
| | |||||
* | Make _strptime escape regex syntax in format string to prevent use in ↵ | Brett Cannon | 2003-04-19 | 1 | -1/+10 |
| | | | | internal regex. | ||||
* | SF patch #691928: Use datetime in _strptime | Raymond Hettinger | 2003-03-09 | 1 | -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 Peters | 2003-01-29 | 1 | -3/+3 |
| | |||||
* | SF patch 670194: Performance enhancement for _strptime.py. | Tim Peters | 2003-01-19 | 1 | -20/+36 |
| | | | | | From Brett Cannon. Mostly speedups via caching format string -> compiled regexp. | ||||
* | SF patch 670012: Compatibility changes for _strptime.py. | Tim Peters | 2003-01-18 | 1 | -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 Jansen | 2003-01-15 | 1 | -8/+12 |
| | | | | _strptime can now handle getting two empty strings as the timezone information. | ||||
* | Fix SF #658820, regex fixes for _strptime (Brett Cannon) | Neal Norwitz | 2002-12-30 | 1 | -8/+9 |
| | | | | Disallow zero for days and months | ||||
* | Fix julian day problem with strptime. Note: XXX about using 0, suggestions? | Neal Norwitz | 2002-12-26 | 1 | -1/+3 |
| | |||||
* | Patch #639112: fixes for None locale and tz. | Martin v. Löwis | 2002-11-27 | 1 | -5/+13 |
| | |||||
* | Brett's fixes for various bugs and coding issues. Closes SF patch # | Barry Warsaw | 2002-09-23 | 1 | -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 of | Barry Warsaw | 2002-08-29 | 1 | -172/+200 |
| | | | | course. | ||||
* | strptime(): The code that was adding 12 to PM hours was incorrect | Barry Warsaw | 2002-08-29 | 1 | -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 Peters | 2002-08-08 | 1 | -40/+40 |
| | |||||
* | Pure Python strptime implementation by Brett Cannon. See SF patch 474274. | Guido van Rossum | 2002-07-19 | 1 | -0/+488 |
Also adds tests. |