Length of day

day_length(date = Sys.Date(), lon, lat)

Arguments

date

The date to compute the length for. An R DateTimeClasses object or something that can be coerced into one by as.POSIXlt().

lon, lat

longitude & latitude

Value

(dbl) length of day

Examples

# NOT RUN {
day_length("2019-12-31", -70.8636, 43.2683)
# }