sunrise_time: Return the time of sunrise given the date and GPS...

View source: R/sunrise_sunset_times.R

sunrise_timeR Documentation

Return the time of sunrise given the date and GPS coordinates.

Description

Return the time of sunrise given the date and GPS coordinates.

Usage

sunrise_time(datetime, latitude, longitude)

Arguments

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).

Value

A POSIXct object for the local time of sunrise.

Examples

library(lubridate)
date <- as_datetime("2020-01-01", tz = "Australia/Adelaide")
sunrise_time(date, -35.69167, 136.9650)

biometryhub/BiometryTools documentation built on July 14, 2024, 4:42 p.m.