astroYear: Convert a historical year to astronomical numbering

View source: R/dates.R

astroYearR Documentation

Convert a historical year to astronomical numbering

Description

Specify the epoch of an observation with historical era labels.

Usage

astroYear(x)

Arguments

x

Numeric astronomical years, character integer years, or historical labels.

Details

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.

Value

Numeric astronomical years in input order.

Validation

Build 2.0.9005 passed all 499 calendar, clock, era, angle and setting checks in A01. The largest discrepancy across 240 absolute Julian dates was 0.000021 seconds. See A01 validation in the technical manual.

Scientific checks

  • All 499 calendar, clock and angle checks passed. The largest error across 240 absolute Julian dates was 0.000021 seconds. A01 study.

See Also

BC.AD, timestring

Examples

astroYear(c("3700 BC", "1 BCE", "1 AD", "2026 CE"))

skyscapeR documentation built on Dec. 2, 2026, 1:10 a.m.