jdcnv {astrolibR}R Documentation

Convert Gregorian dates to Julian days

Description

Convert Gregorian dates to Julian days

Usage

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

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

jdcnv(1978, 1, 1, 0.)

[Package astrolibR version 0.1 Index]