So I went to the link Ben gave and it was helpful to understand the
definition pata... but I am not really interested in starting my year in
sept. only in the part about 13 months of 28 days and 1 extra. Financial
periods are done ( from what I have experienced ) in 12 periods 13 periods
( allowing credit card companies to charge an extra months interest ) or a
pattern of periods that have 4 weeks then 4 more then 5weeks; the 445
quarter. All of these have 365 - 6 days with an extra day or 2 tossed in
to make the math work.
The thing to remember is the usage. I hate ISO because my CFO will never
believe Jan 1 of any year is possibly in week 53 of the prior year, or for
that matter that years even have 53 weeks.
to revise what I said earlier.. The method I had in mind would implement
something like below and look something like
::use_calendar('DateTime::Business::Calc::Periods', 13) <- this
may be a little absurd.
Maybe I should include my ugly little hack for Data::Calc and how I am
employing it an a live application?
On Sat, 21 Jun 2003, Eugene van der Pijll wrote:
> 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
>