jdcnv: Convert Gregorian dates to Julian days

Description Usage Arguments Value Author(s) Examples

Description

Convert Gregorian dates to Julian days

Usage

1
jdcnv(yr, mn, day, hr)

Arguments

yr

year, integer scalar or vector

mn

month, integer (1-12) scalar or vector

day

day, integer 1-31) scalar or vector

hr

hours and fractions of hours of universal time (U.T.), scalar or vector

Value

julian

Julian date

Author(s)

Converted to IDL from Yeoman's Comet Ephemeris Generator, B. Pfarr, STX, 1988

R adaptation by Arnab Chakraborty (June 2013)

Examples

1
2
3
4
# To find the Julian Date for 1978 January 1, 0h (U.T.)
# Result: julian = 2443509.5

jdcnv(1978, 1, 1, 0.)

Example output

[1] 2443510

astrolibR documentation built on May 2, 2019, 3:26 a.m.