moonsun (version 0.1.3)

jd: Julian Day Number

Description

Compute the Julian Day Number for a given date, optionally generating a sequence.

Usage

jd(year = NULL, month = NULL, day = NULL, epoch = Sys.time(), length = 1, by = 1)

Arguments

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

Value

A vector of Julian Day Numbers.

Details

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).

Examples

Run this code
jd()
jd(1978,10,16)
jd(length=10)

Run the code above in your browser using DataLab