#### Example 1: estimate current times of dawn, sunrise, dusk and sunset in Mainz, Germany
pos <- data.frame(Lat = 50, Lon = 8.2667)
pos$datetime <- strptime(Sys.Date(),"%Y-%m-%d")
get_DayTimeLimits(pos)
#### Example 1b: classify current time of the day in Mainz, Germany
classify_DayTime(get_DayTimeLimits(pos))
Run the code above in your browser using DataLab