[New-bugs-announce] [issue9909] request for calendar.dayofyear() function

Jeffrey Finkelstein report at bugs.python.org
Tue Sep 21 05:27:43 CEST 2010


New submission from Jeffrey Finkelstein <jeffrey.finkelstein at gmail.com>:

This is a function which computes the integer between 1 and 366 representing the day of the year, given a year, month, and day.

The implementation I have provided computes the difference between the ordinal numbers of the given day and January first of that month.

This will be useful in resolving issue9864, in which parsing of date strings has an unimplemented "day of year" feature.

----------
components: Library (Lib)
files: dayofyear.patch
keywords: patch
messages: 117024
nosy: jfinkels
priority: normal
severity: normal
status: open
title: request for calendar.dayofyear() function
type: feature request
versions: Python 3.3
Added file: http://bugs.python.org/file18941/dayofyear.patch

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


More information about the New-bugs-announce mailing list