Skip Menu |

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

Report information
The Basics
Id: 66548
Status: open
Priority: 0/
Queue: Date-Calc

People
Owner: Nobody in particular
Requestors: luca [...] yepa.com
Cc:
AdminCc:

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



Subject: Italian calendar changed in 2011
Date: Fri, 11 Mar 2011 13:16:41 +0100
To: bug-Date-Calc [...] rt.cpan.org
From: Luca Venturini <luca [...] yepa.com>
Hi, the Italian calendar is changed in 2011: in Date/Calendar/Profiles.pm in $Profiles->{'IT'} Only in year 2011: "Unità d'Italia" => "17.03." Code: --- "Unità d'Italia" => \&IT_Unita, sub IT_Unita { my($year,$label) = @_; if ($year == 2011) { return($year,17,3) } } --- Thank you. Luca Venturini
On Fri Mar 11 07:16:54 2011, luca@yepa.com wrote: Show quoted text
> Hi, > > the Italian calendar is changed in 2011: > > in Date/Calendar/Profiles.pm in $Profiles->{'IT'} > > Only in year 2011: > "Unità d'Italia" => "17.03." > > Code: > --- > "Unità d'Italia" => \&IT_Unita, > > sub IT_Unita > { > my($year,$label) = @_; > if ($year == 2011) { return($year,17,3) } > } > --- > > Thank you. > > Luca Venturini
I intend not to make any fixes to any of the calendar profiles anymore unless there are VERY compelling reasons to do so. These profiles are merely meant as examples. The suggested way of using these profiles is to copy them to one's own code and then to modify them as needed. (Otherwise many people could be negatively affected if I made any changes to a profile they are using) Any improvements such as the one suggested by you are therefore left as an exercise to the inclined reader. :-)