PHP.SU
FORUM.PHP.SU
(PHP 3 >= 3.0.13, PHP 4, PECL)
mcal_day_of_year() returns the day of the year of the given date.