On Mon, Jan 31, 2005 at 10:13:41AM -0600, _brian_d_foy wrote:
> 
> +You can use the Time::JulianDay module available on CPAN.  Ensure that
> +you really want to find a Julian day, though, as many people have
> +different ideas about Julian days.  See
> +http://www.hermetic.ch/cal_stud/jdn.htm for instance.

I wonder if it's worth making a stand and pointing people to the DateTime
module instead. It has methods for getting the Julian Day

  $ perl -MDateTime -le'print DateTime->today->jd'
  2453401.5

The modified Julian Day

  $ perl -MDateTime -le'print DateTime->today->mjd'
  53401

And the day of the year (which is what some people think of as a Julian
day)

  $ perl -MDateTime -le'print DateTime->today->doy'
  31

I'm all for encouraging wider use of the DateTime modules instead of a
group of disparate modules with no uniform API.

Dave...

-- 
  If there's something inside that you wanna say
  Say it out loud it'll be ok

Reply via email to