Define daytime or nighttime

mf_daynight(mytime = as.POSIXct("2016-09-12", tz = "GMT"), longitude = 11.4,
    latitude = 47.27)

Arguments

mytime

given time, POSIXct

latitude

given latituede, numeric

longtitude

given longitute, numeric

Value

'day' or 'night', character

Examples

mf_daynight()
#> Error in sunriset(crds = matrix(c(longitude, latitude), nrow = 1), mytime, direction = "sunrise", POSIXct.out = TRUE): could not find function "sunriset"