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
* /jdnow()
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