julian_day: Calculate Julian day

View source: R/solar.R

julian_dayR Documentation

Calculate Julian day

Description

This function converts a date in the Gregorian calendar to a Julian day number (i.e., a method of consecutive numbering of days—does not have anything to do with the Julian calendar!)

Usage

julian_day(y, m, i)

Arguments

y

double, year.

m

double, month.

i

double, day of month.

Details

  • valid for dates after -4712 January 1 (i.e., jde >= 0)

Value

double, Julian day.

References

Meeus, J. 1991. Chapter 7 "Julian Day". Astronomical Algorithms. Willmann-Bell.


splash documentation built on Oct. 12, 2022, 5:07 p.m.