Revision 721
Added by Aaron Marcuse-Kubitza almost 13 years ago
xml_func.py | ||
---|---|---|
60 | 60 |
day = int(day) |
61 | 61 |
date = datetime.date(year, month, day) |
62 | 62 |
except ValueError, e: raise SyntaxException(e) |
63 |
return date.strftime('%Y-%m-%d') |
|
63 |
try: return date.strftime('%Y-%m-%d') |
|
64 |
except ValueError, e: raise SyntaxException(e) |
|
64 | 65 |
|
65 | 66 |
_name_parts_slices_items = [ |
66 | 67 |
('first', slice(None, 1)), |
Also available in: Unified diff
xml_func.py: Raise xml_func.SyntaxException for ValueErrors generated by date.strftime() (e.g. year out of range due to poor Y2K support in some OS implementations of strftime)