Determines if specified datetime is during the daytime Returns T/F indicating whether a datetime occurs during the daytime (sunlight hours)
Source:R/calc_is_daytime.R
calc_is_daytime.Rd
Determines if specified datetime is during the daytime Returns T/F indicating whether a datetime occurs during the daytime (sunlight hours)
Arguments
- datetimes
Vector of dates as
POSIXct
orPOSIXlt
(seeDateTimeClasses
) format, but in SOLAR time- lat
Single latitude value of site. South should be negative, north positive
Examples
if (FALSE) {
# Warning: this function is deprecated.
calc_is_daytime(datetimes=as.POSIXct(paste('2013-03-31', c('1:00','11:00'))), lat=40.75)
}