Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14781] Default to year 1 in strptime if year 0 has been specified

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 11, 2012, 4:52 AM

Post #1 of 4 (100 views)
Permalink
[issue14781] Default to year 1 in strptime if year 0 has been specified

Hynek Schlawack <hs [at] ox> 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 [at] bugs>
<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


report at bugs

May 11, 2012, 5:16 AM

Post #2 of 4 (91 views)
Permalink
[issue14781] Default to year 1 in strptime if year 0 has been specified [In reply to]

Hynek Schlawack <hs [at] ox> 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 [at] bugs>
<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


report at bugs

May 11, 2012, 9:42 AM

Post #3 of 4 (85 views)
Permalink
[issue14781] Default to year 1 in strptime if year 0 has been specified [In reply to]

Changes by Terry J. Reedy <tjreedy [at] udel>:


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

_______________________________________
Python tracker <report [at] bugs>
<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


report at bugs

May 14, 2012, 9:07 AM

Post #4 of 4 (79 views)
Permalink
[issue14781] Default to year 1 in strptime if year 0 has been specified [In reply to]

R. David Murray <rdmurray [at] bitdance> added the comment:

Datetime doesn't support BC.

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

_______________________________________
Python tracker <report [at] bugs>
<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

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.