Learn R Programming

astrolibR (version 0.1)

jdcnv: 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

Examples

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

jdcnv(1978, 1, 1, 0.)

Run the code above in your browser using DataLab