jd: Julian Day Number

Description Usage Arguments Details Value Author(s) Examples

Description

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

Usage

1
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

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

1
2
3
jd()
jd(1978,10,16)
jd(length=10)

moonsun documentation built on May 29, 2017, 12:17 p.m.