astroYear()
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.
Astronomical years include zero. Historical BC or BCE years convert by subtracting the historical year from one. AD and CE years keep their value. Era labels are case-insensitive and follow a positive whole year.
Interpretation and limits. When an excavation report gives 1 BC, the corresponding astronomical year is zero. Convert the year once before computing an ephemeris. An off-by-one year can survive a round trip through calendar formatting if both ends use the same mistaken convention.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
x |
— | Numeric astronomical years, character integer years, or historical labels. |
Return value
Numeric astronomical years in input order.
Implementation. R/dates.R. Full function help · Time, coordinates and ephemerides outline · Astronomical conventions and stellar positions