ars_DateToJulianDate(control, year, month, day)

Converts a year, month, and day value to a Julian date. The Julian date is the number of days since noon, Universal Time, on January 1, 4713 BCE (on the Julian calendar). The changeover from the Julian calendar to the Gregorian calendar occurred in October, 1582. The Julian calendar is used for dates on or before October 4, 1582. The Gregorian calendar is used for dates on or after October 15, 1582.

On success
Returns an integer.
On failure
Returns undef.

Example:

    my $juliandate = ars_DateToJulianDate($ctrl, 1066, 10, 14);
    print "The Battle of Hastings was on October 14th, 1066.\n";
    print "This is $juliandate days after January 1st, 4713 BCE.\n";

ars_DateToJulianDate was introduced in version 1.92 of ARSperl

Back to Table of Contents

Last changes to this page 30 March 2009 by michiel.beijen@gmail.com