View source: R/sunrise_sunset_times.R
sunrise_time | R Documentation |
Return the time of sunrise given the date and GPS coordinates.
sunrise_time(datetime, latitude, longitude)
datetime |
A POSIXct object for the local date (and timezone). |
latitude |
The decimal-degrees for the latitude (Northing). |
longitude |
The decimal-degrees for the longitude (Easting). |
A POSIXct object for the local time of sunrise.
library(lubridate)
date <- as_datetime("2020-01-01", tz = "Australia/Adelaide")
sunrise_time(date, -35.69167, 136.9650)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.