jd {moonsun} | R Documentation |
Compute the Julian Day Number for a given date, optionally generating a sequence.
jd(year = 0, month = 0, day = 0, epoch = Sys.time(), length = 1, by = 1)
year |
year |
month |
month |
day |
day |
epoch |
epoch (number of seconds since 1st January 1970 0000 UTC) |
length |
length of sequence |
by |
step of sequence |
If any of the year, month or day parameters is given (and thus nonzero) the date is taken from these parameters. If not, the epoch parameter is considered (default taken from system timer).
A vector of Julian Day Numbers.
Lukasz Komsta
jd() jd(1978,10,16) jd(length=10)