julday: Calculates the astronomical Julian day

View source: R/solartools.R

juldayR Documentation

Calculates the astronomical Julian day

Description

julian is used to calculate the astronomical Julian day (days since since January 1, 4713 BCE at noon UTC) from a given year, month and day.

Usage

julday(year, month, day, hour = 12, min = 0, sec = 0, dst = 0)

Arguments

year

year (AD).

month

month in numeric form (1-12).

day

days of the month (1-31).

hour

hours (decimal, 0-23).

min

minutes (decimal, 0-59).

sec

seconds (decimal, 0-59).

dst

an optional numeric value specifying the time zone expressed as hours different from GMT (-ve to west).

Value

Julian Day. I.e. the number of days since January 1, 4713 BCE at noon UTC.

Examples

jd1 <- julday(2010, 1, 31)
jd2 <- julday(2010, 1, 31, 11, 0, 0)
jd1 - jd2

ilyamaclean/microclima documentation built on Oct. 31, 2023, 11:41 p.m.