DateTime-Format-Epoch
    
    
  
  
  
view release on metacpan or search on metacpan
lib/DateTime/Format/Epoch/JD.pm view on Meta::CPAN
  my $dt2 = $formatter->parse_datetime( 2453244.5 );
   # 2004-08-27T00:00:00
  $formatter->format_datetime($dt2);
   # 2453244.5
=head1 DESCRIPTION
This module can convert a DateTime object (or any object that can be
converted to a DateTime object) to the Julian Day number. This is the
number of days since noon U.T.C. on January 1, 4713 B.C. (Julian
calendar).
This time scale was originally proposed by John Herschel, and is
often used in astronomical calculations.
Similar modules are:
=over 4
=item * DateTime::Format::Epoch::MJD
lib/DateTime/Format/Epoch/JD.pm view on Meta::CPAN
=item * DateTime::Format::Epoch::RataDie
Implements the Rata Die count, starting at January 1, 1 (Gregorian).
This count is used by DateTime::Calendar programmers.
=item * DateTime::Format::Epoch::Lilian
Implements the Lilian count, named after Aloysius Lilian (a 16th century
physician) and first used by IBM (a 19th century punched card machine
manufacturer).  This counts the number of days since the adoption of the
Gregorian calendar.  Only days are counted, and October 15, 1584 is day
1.
=back
=head1 METHODS
Most of the methods are the same as those in L<DateTime::Format::Epoch>.
The only difference is the constructor.
=over 4
( run in 0.647 second using v1.01-cache-2.11-cpan-5dc5da66d9d )