julianDay(t, year, month, day, hour, min, sec, tz="UTC")
as.POSIXct
, as.POSIXlt
, or
numberAsPOSIXct
month
, etc., if t
is not provided.julian
suggests another formula, but the
point of the present function is to match the other Meeus formulae, so that
suggestion is ignored here.t <- ISOdatetime(1977, 4, 26, hour=0, min=0, sec=0, tz="ET")+0.4*86400
jd <- julianDay(t)
cat(format(t), "is Julian Day", format(jd, digits=14), "")
Run the code above in your browser using DataLab