# one date
getMoonIllumination(date = Sys.Date())
# in character
getMoonIllumination(date = c("2017-05-12", "2017-05-12 00:00:00"),
keep = c("fraction", "phase"))
# in POSIXct
getMoonIllumination(date = as.POSIXct("2017-05-12 00:00:00", tz = "UTC"))
getMoonIllumination(date = as.POSIXct("2017-05-12 02:00:00", tz = "CET"))
date <- seq(ISOdate(2009,1,1), ISOdate(2010,1,1), "hours")
date_cet <- date
attr(date_cet, "tzone") <- "CET"
res <- getMoonIllumination(date = date_cet)
Run the code above in your browser using DataLab