timestring()

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.

Function index

Survey records often store year, month, day and clock time separately. This formatter pads the month, day and clock components to two characters and joins them as year/month/day and hours:minutes:seconds. Omitted time is noon. Formatting alone does not supply a timezone or check that the date exists; use time2jd to validate and convert it.

Preserving the original field representation.

Implementation arguments, return value and documented modes
Argument Formal default Behaviour in this interface
year —

Year. Historical labels such as "3700 BC" are accepted by astroYear.

month —

Month

day —

Day

hour 12

Hour

minute 0

Minute

second 0

Second

Return value

A character date-time string in the slash-separated format accepted by time2jd.

Implementation. R/dates.R. Full function help · Time, coordinates and ephemerides outline · Astronomical conventions and stellar positions