BF: group _f for %f in strptime for py2.5 compatibility

pull/368/head
Daniel Black 11 years ago
parent 6fd2179725
commit 7b52a578bd

@ -242,7 +242,7 @@ class DatePatternRegex(DateStrptime):
_patternRegex = {
'a': r"\w{3}", 'A': r"\w+", 'b': r"\w{3}", 'B': r"\w+",
'd': r"(?:3[0-1]|[1-2]\d|[ 0]?\d)",
'f': r"\d{1,6}", 'H': r"(?:2[0-3]|1\d|[ 0]?\d)",
'f': r"(?P<_f>\d{1,6})", 'H': r"(?:2[0-3]|1\d|[ 0]?\d)",
'I': r"(?:1[0-2]|[ 0]?\d)",
'j': r"(?:36[0-6]3[0-5]\d|[1-2]\d\d|[ 0]?\d\d|[ 0]{0,2}\d)",
'm': r"(?:1[0-2]|[ 0]?[1-9])", 'M': r"[0-5]\d", 'p': r"[AP]M",

Loading…
Cancel
Save