Ben Bennett schreef:
> I was under the impression that the Pataphysical calendar was
> basically a fictional one that parodies the French Catholic calendar
> (http://user.icx.net/~richmond/rsr/pataphysique/pataphysique.html).
> Are you suggesting that it is useful for business calculations?
The Pataphysical calendar is very useful for businesses because of:
1) the regularity of the calendar
2) the larger number of days in a given period compared to the Gregorian
calendar.
my $d1 = DateTime->new(year => 2003, month => 1, day => 1);
my $d2 = DateTime->new(year => 2003, month => 6, day => 1);
print "Gregorian delta_days: ", ($d2 - $d1)->delta_days, "\n";
$d1 = DateTime::Calendar::Pataphysical->from_object(object => $d1);
$d2 = DateTime::Calendar::Pataphysical->from_object(object => $d2);
print "Pataphysical delta_days: ", ($d2 - $d1)->delta_days, "\n";
Output:
Gregorian delta_days: 151
Pataphysical delta_days: 156
I'd really like to see a Business module based on DT::C::Pataphysical...
Eugene