jday | R Documentation |
jday
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.
jday(year, month, day, hour = 12, min = 0, sec = 0, dst = 0, tme = NA)
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). |
tme |
POSIXlt object of times in UTC. Other inputs ignored if this is provided |
Julian Day. I.e. the number of days since January 1, 4713 BCE at noon UTC.
tme <- as.POSIXlt(0, origin = "2020-03-21 12:43", tz = "UTC") jday(tme = tme) jd1 <- jday(2010, 1, 31) jd2 <- jday(2010, 1, 31, 11, 0, 0) jd1 - jd2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.