[issue24954] No way to generate or parse timezone as produced by datetime.isoformat()

shanmbic report at bugs.python.org
Mon Oct 5 18:44:11 EDT 2015


shanmbic added the comment:

Yeah , I agree that including '%:::z' might not be necessary at all . Including '%:z' and '%::z' format specifiers will give an upper edge to Python. Although , if not going with '%::z' or seconds offset, for now only '%:z' can be a valuable addition . 
I have rectified my code, corrected the indentations and have added cases , where it will also handle any strings of form '%:z' and '%::z' i.e. any character other than 'z' also raising exceptions for cases "%:" or "%::", where no character is specified (Invalid string).   
In case , if we only go with '%:z' format specifier , I will remove the code for '%::z'. 
P.S. I have filled the contributor agreement form. Thanks for the awesome help here. :)

----------
Added file: http://bugs.python.org/file40692/datetime2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24954>
_______________________________________


More information about the Python-bugs-list mailing list