[issue9909] request for calendar.dayofyear() function

Raymond Hettinger report at bugs.python.org
Sun Nov 21 02:02:52 CET 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

"We already got one, and it's very nice-a"

ISTM, this should be done with regular date arithmetic in the datetime module.

>>> date(1964, 7, 31) - date(1963, 12, 31)
datetime.timedelta(213)

I don't see why we need a new function for this or why it would be put in the calendar module (where some of its functions have been supplanted by the datetime module).

----------
nosy: +rhettinger
priority: normal -> low

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


More information about the Python-bugs-list mailing list