CelestialMoonSet Property
Moon set time.
Namespace: CoordinateSharpAssembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
public DateTime? MoonSet { get; }
Property Value
NullableDateTime If DateTime is null, check the MoonCondition property.
The following example gets the moon set time in UTC at N 39, W 72 on 1-March-2018
Coordinate coordinate = new Coordinate(39,-72, new DateTime(2018,3,1));
Console.WriteLine(coordinate.CelestialInfo.MoonSet); //3/1/2018 11:12:08 AM (UTC)
The following example demonstrates a returned null MoonSet value as the moon does not set at N 39, W 72 on 1-March-2018.
You can see why there is no value returned by checking the MoonCondition property to see that the moon is up all day
at the specified location.
Coordinate coordinate = new Coordinate(85,-72, new DateTime(2018,3,1));
Console.WriteLine(coordinate.CelestialInfo.MoonSet); //Returns Null
Console.WriteLine(coordinate.CelestialInfo.MoonCondition); //UpAllDay