| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
from time.tzname.
|
|
|
|
|
| |
with values of 0. Also now check time.daylight to see if time.tzname[1]
should be used in timezone checking.
|
|
|
|
| |
string. Done to match behavior of pre-existing C-based strptime implementations.
|
| |
|
|
|
|
| |
internal regex.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
From Brett Cannon. Mostly speedups via caching format string ->
compiled regexp.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
_strptime can now handle getting two empty strings as the timezone information.
|
|
|
|
| |
Disallow zero for days and months
|
| |
|
| |
|
|
|
|
|
| |
593560, with some minor cleanups, line folding and whitespace
normalization by Barry.
|
|
|
|
| |
course.
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
Also adds tests.
|