This won't work:

  # convert Julian->Gregorian...

  $dtgreg = DateTime->from_object( $dt );

It needs to be:

  $dtgreg = DateTime->from_object( object => $dt );

Since it inherits this method from DateTime.pm, the docs are wrong for
itself as well.

I noticed that it overrides _greg2rd and _rd2greg.  I can rename these as
_ymd2rd and _rd2ymd, so it won't look so odd in the Julian calendar
modules.

Finally, I think that Perl's built-in int() function does everything that
floor() is being used for.  POSIX is a big memory hog, so getting rid of
it is a good thing.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to