Time

NAME

VERSION

SYNOPSIS

DESCRIPTION

JD and MJD

Civil year vs astronomical year

Date and Time

Gregorian calendar

EXPORTED CONSTANTS

  • * $SEC_PER_DAY seconds per day (86400)

  • * $SEC_PER_CEN seconds per century (3155760000)

  • * $J2000 Standard Julian date for start of epoch 2000,0 (2451545)

  • * $GREGORIAN_START Start of Gregorian calendar, YYYYMMDD (15821004)

  • * $JD_UNIX_EPOCH Standard Julian date for start of the Unix epoch

EXPORTED FUNCTIONS

FUNCTIONS

jd_cent($jd)

after_gregorian($year, $month, $date, gregorian_start => $YYYYMMDD )

Positional Arguments

  • * year (astronomic, zero-based)

  • * month (1-12)

  • * date UTC date (1-31) with hours and minutes as decimal part

Optional Named Arguments

  • *

Returns

cal2jd($year, $month, $date)

Positional Arguments:

  • * year (astronomic, zero-based)

  • * month (1-12)

  • * date UTC date (1-31) with hours and minutes as decimal part

Optional Named Arguments

  • *

Returns

jd2cal($jd)

Positional Arguments

Optional Named Arguments

  • * gregorian ā€” if i<true>, the result will be old-style (Julian) date

Returns

jd0($jd)

unix2jd($seconds)

jd2unix($jd)

jdnow()

jd2mjd($jd)

mjd2jd($mjd)

jd_cent($jd)

t1900($jd)

jd2gst($jd)

jd2lst($jd, $lng)

Arguments

  • * $jd ā€” Standard Julian date

  • * $lng ā€” Geographic longitude, negative for Eastern longitude, 0 by default

AUTHOR

LICENSE AND COPYRIGHT

DateTime::Julian v1.1.0

Provides a DateTime::Julian class (a child class of Raku's DateTime)

Authors

  • Tom Browder

License

Artistic-2.0

Dependencies

Astro::UtilsMath::Trig:auth<zef:tbrowder>

Test Dependencies

Provides

  • DateTime::Julian

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.