in reply to Need Help with DATE::CALC $doy
OK, by running the command "perldoc Date::Calc", we see:
so your description of the Day_of_Year function isn't quite spot on. If you indeed are able to get a day of year out of the Date::Calc::Day_of_Year function, then you already know the year, day & month, correct?Day_of_Year $doy = Day_of_Year($year,$month,$day);
Staying within the Date::Calc module, your best bet is the Month_to_Text function:
HTHuse strict; use Date::Calc qw/Today Month_to_Text/; my ($year, $month, $day) = Today(); # work with today's date print sprintf("%s %d, %d", Month_to_Text($month), $day, $year);
|
|---|