At 11:40 PM -0500 9/19/03, Dave Rolsky wrote:
DateTime->day_count_in_year( year => 1999, day => 4 );

I think this is what was originally meant.


What would people need this info for?


I'm not sure about the count in a year, but I frequently need to determine how many of a given day of the week fall in a given month of the year, or, more precisely, given that today is Saturday, September 20, I need to figure out whether today is the first, second, third, fourth, or fifth Saturday of the month. I've worked out code using existing methods to tell me what I need to know, and I'm not sure that an entirely new method is warranted here.


Jerry
--
Jerry Wilcox - University of California, Office of the President
Manager Payroll/Personnel Services -- Information Resources & Communications
415 20th Street (3rd Floor)
Oakland, CA 94612 -- 510-987-0516 -- FAX 510-763-5597
``The lyf so short, the craft so long to lerne.'' - Chaucer

Reply via email to