Mailing List Archive

[issue14781] Default to year 1 in strptime if year 0 has been specified
Hynek Schlawack <hs@ox.cx> added the comment:

Well, that's what C's strptime does. But that would be a feature request (if it works as documented, it's no bug). :)

I've transformed this issue accordingly. But as a feature request, it won't go into 2.7 unless I'm missing something.

----------
nosy: +belopolsky, benjamin.peterson, lemburg
priority: normal -> low
resolution: invalid ->
stage: -> needs patch
title: strptime fails for year 0 -> Default to year 1 in strptime if year 0 has been specified
type: crash -> enhancement
versions: +Python 3.2, Python 3.3 -Python 2.7

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14781>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue14781] Default to year 1 in strptime if year 0 has been specified [ In reply to ]
Hynek Schlawack <hs@ox.cx> added the comment:

I have to correct myself:

It's _not_ what C's strptime does. C's strptime returns via "struct tm" which saves only "years since 1900" in the "tm_year" field.

----------

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14781>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue14781] Default to year 1 in strptime if year 0 has been specified [ In reply to ]
Changes by Terry J. Reedy <tjreedy@udel.edu>:


----------
versions: -Python 3.2

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14781>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com
[issue14781] Default to year 1 in strptime if year 0 has been specified [ In reply to ]
R. David Murray <rdmurray@bitdance.com> added the comment:

Datetime doesn't support BC.

----------
nosy: +r.david.murray
resolution: -> invalid
status: open -> closed

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14781>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com