Click or drag to resize

CelestialGet_Solar_Eclipse_Table Method

Returns a List containing solar eclipse data for the century at the specified location. Century returned is based on the date passed.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public static List<SolarEclipseDetails> Get_Solar_Eclipse_Table(
	double lat,
	double longi,
	DateTime date
)

Parameters

lat
Type: SystemDouble
latitude
longi
Type: SystemDouble
longitude
date
Type: SystemDateTime
DateTime

Return Value

Type: ListSolarEclipseDetails
List>SolarEclipseDetails>
Examples
The following example gets a Solar Eclipse table for the 20th century at N 39, W 72 and displays each type of eclipse and occurrence date in that century.
List>SolarEclipseDetails> seList = Celestial.Get_Solar_Eclipse_Table(39, -72, new DateTime(1950, 1, 1));

foreach(SolarEclipseDetails sd in seList)
{
       Console.WriteLine(sd.Type + " " + sd.Date.ToShortDateString());
}

//Partial 8/30/1905
//Partial 6/28/1908
//Partial 6/18/1909
//Partial 4/17/1912
//Partial 2/3/1916
//Partial 6/7/1918
//Partial 11/22/1919
...
See Also