Skip Menu |

This queue is for tickets about the Date-Calc CPAN distribution.

Report information
The Basics
Id: 42880
Status: resolved
Priority: 0/
Queue: Date-Calc

People
Owner: Nobody in particular
Requestors: MARKOV [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 5.4
Fixed in: (no value)



Subject: missing DOY_to_Month_Day
I would like to have added my ($month, $day) = DOY_to_Month_Day($year, $doy)
On Thu Jan 29 04:04:12 2009, MARKOV wrote: Show quoted text
> I would like to have added > > my ($month, $day) = DOY_to_Month_Day($year, $doy)
my ($year, $month, $day) = Add_Delta_Days($year,1,1,$doy-1);
Subject: Re: [rt.cpan.org #42880] missing DOY_to_Month_Day
Date: Mon, 27 Jul 2009 19:52:39 +0200
To: Steffen_Beyer via RT <bug-Date-Calc [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* Steffen_Beyer via RT (bug-Date-Calc@rt.cpan.org) [090727 15:32]: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=42880 > > > On Thu Jan 29 04:04:12 2009, MARKOV wrote:
> > I would like to have added > > > > my ($month, $day) = DOY_to_Month_Day($year, $doy)
> > my ($year, $month, $day) = Add_Delta_Days($year,1,1,$doy-1);
Yes, that is the documented work-around. Better is to simply add the function so you can leave-out the documentation (which is also hard to find). -- MarkOv ------------------------------------------------------------------------ drs Mark A.C.J. Overmeer MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
On Mon Jul 27 13:53:00 2009, solutions@overmeer.net wrote: Show quoted text
> > my ($year, $month, $day) = Add_Delta_Days($year,1,1,$doy-1);
> > Yes, that is the documented work-around. Better is to simply add > the function so you can leave-out the documentation (which is also > hard to find).
Granted, but I will not add a myriad of little functions for special cases. The wishlist is endless and would never end, no matter what. It also goes against the philosophy of the module, be minimal but (computationally) complete. Sorry to disappoint you. :-)
This function will be included in the new module Date::Calc::Util, to be released shortly.