On Sat, 1 Mar 2003, Ken Williams wrote: > Out the corner of my eye I'm watching the DateTime development. I > noticed a nit: in code like lib/DateTime.pm there are constants like > 1_721_424. I don't know what that means, but it would be nice to let > Perl's constant-folding take care of this so the source code could be > clearer about a purpose: > > % perl -MO=Deparse -e 'print 4*5*6*7*8*9' > print 60480; > -e syntax OK > > So you can just write 1_721_424 as whatever mathematical expression it > comes from, which I think is maybe (393 * 365 + 7) * 12 ?
This particular constant is the difference between Rata Die's day 1 and the Julian day 1. I got it out of the Calendrical Calculations book. I don't think that changing this to a mathematical expression would necessarily make things any clearer. -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/
