jd {moonsun}R Documentation

Julian Day Number

Description

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

Usage

jd(year = 0, month = 0, day = 0, 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

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

Value

A vector of Julian Day Numbers.

Author(s)

Lukasz Komsta

Examples

jd()
jd(1978,10,16)
jd(length=10)

[Package moonsun version 0.1 Index]