Support Google-formatted dates
This commit is contained in:
parent
e74cd4d6cb
commit
1a4760a348
@ -11,7 +11,7 @@ Recommended: Python 2.3 or later
|
||||
Recommended: CJKCodecs and iconv_codec <http://cjkpython.i18n.org/>
|
||||
"""
|
||||
|
||||
__version__ = "4.2-pre-" + "$Revision: 1.141 $"[11:16] + "-cvs"
|
||||
__version__ = "4.2-pre-" + "$Revision: 1.142 $"[11:16] + "-cvs"
|
||||
__license__ = """Copyright (c) 2002-2006, Mark Pilgrim, All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
@ -2640,7 +2640,7 @@ def registerDateHandler(func):
|
||||
# 0301-04-01), so we use templates instead.
|
||||
# Please note the order in templates is significant because we need a
|
||||
# greedy match.
|
||||
_iso8601_tmpl = ['YYYY-?MM-?DD', 'YYYY-MM', 'YYYY-?OOO',
|
||||
_iso8601_tmpl = ['YYYY-?MM-?DD', 'YYYY-0MM?-?DD', 'YYYY-MM', 'YYYY-?OOO',
|
||||
'YY-?MM-?DD', 'YY-?OOO', 'YYYY',
|
||||
'-YY-?MM', '-OOO', '-YY',
|
||||
'--MM-?DD', '--MM',
|
||||
|
Loading…
x
Reference in New Issue
Block a user