CelestialGet_Next_SunRise(Double, Double, DateTime, Double) Method

Gets the next sunrise from the provided point in time at the passed location.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public static DateTime Get_Next_SunRise(
	double lat,
	double longi,
	DateTime geoDate,
	double offset
)

Parameters

lat  Double
Latitude
longi  Double
Longitude
geoDate  DateTime
DateTime at Location
offset  Double
UTC Offset

Return Value

DateTime
DateTime

Example

The following example gets the next sunrise from the point in time at the provided location using a UTC offset to convert the time to local.
C#
DateTime d = new DateTime(2019, 2, 6);

//JBMDL (EST TIME)
DateTime sun = Celestial.Get_Next_SunRise(40.0352, -74.5844, d, -4); //2/6/2019 8:03:33 AM (EST)

See Also