Usage
day_night(date = lubridate::today(), tz = "UTC", geocode = NULL,
lon = 0, lat = 0, twilight = "none", unit.out = "date")
noon_time(date = lubridate::today(), tz = "UTC", geocode = NULL,
lon = 0, lat = 0, twilight = NA, unit.out = "date")
sunrise_time(date = lubridate::today(), tz = "UTC", geocode = NULL,
lon = 0, lat = 0, twilight = "none", unit.out = "date")
sunset_time(date = lubridate::today(), tz = "UTC", geocode = NULL,
lon = 0, lat = 0, twilight = "none", unit.out = "date")
day_length(date = lubridate::today(), tz = "UTC", geocode = NULL,
lon = 0, lat = 0, twilight = "none", unit.out = "hour")
night_length(date = lubridate::today(), tz = "UTC", geocode = NULL,
lon = 0, lat = 0, twilight = "none", unit.out = "hour")
Arguments
date
array of POSIXct times or Date objects, any valid TZ is allowed,
default is current date
tz
character string incading time zone to be used in output, default
is system time zone
geocode
data frame with variables lon and lat as numeric values
(degrees).
lon
numeric array of longitudes (degrees)
lat
numeric array of latitudes (degrees)
twilight
character string, one of "none", "civil", "nautical",
"astronomical", or a numeric
vector of length one, or two, giving
solar elevation angle(s) in degrees (negative if below the horizon).
unit.out
charater string, One of "date", "hour", "minute", or "second".