jd2time()
Scientific results for this function.
All 499 calendar, clock, era, angle and setting checks in A01 passed. The largest discrepancy across 240 absolute Julian dates was 0.000021 seconds. A01 results.
An instant is specified by its UT Julian date. To label it consistently, choose the calendar and the offset or civil timezone appropriate to the record. The conversion rounds to the nearest second, applies the offset at the rounded instant, handles day rollover and converts the day number with Swiss Ephemeris.
Fixed offsets may be numeric hours east of UTC (for example 5.5), or
strings such as "UTC+05:30", "UTC-02" or "GMT+01".
Offsets must lie between -14 and +14 hours. UTC, GMT and the empty string
mean zero offset; an empty string does not select the system timezone.
Interpretation and limits. For an ancient event near local midnight, retain the UT Julian day alongside the printed date. Round-tripping a civil label tests conversion conventions; it cannot establish the prehistoric difference between terrestrial and rotational time.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
jd |
— | Finite numeric vector of UT Julian dates. |
timezone |
— | Timezone name or fixed offset; defaults to the value in |
calendar |
— | Output calendar: G or Gregorian, J or Julian. Defaults to the package calendar setting, initially Gregorian. |
verbose |
F |
Logical; display a conversion message. Default is FALSE. |
Return value
A character vector in YYYY/MM/DD HH:MM:SS format. Years are signed as needed and are not padded to four digits.
Implementation. R/dates.R. Full function help · Time, coordinates and ephemerides outline · Equinoctial full Moons and crescent crossovers · Astronomical conventions and stellar positions