


netstandard1.6 netstandard1.6 was computed. netstandard1.5 netstandard1.5 was computed. netstandard1.4 netstandard1.4 was computed. Netstandard1.3 netstandard1.3 is compatible.

netcoreapp3.1 netcoreapp3.1 is compatible. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp1.1 netcoreapp1.1 was computed. Netcoreapp1.0 netcoreapp1.0 was computed. net7.0-windows net7.0-windows was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-android net7.0-android was computed. net6.0-windows net6.0-windows was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-android net6.0-android was computed. net5.0-windows net5.0-windows was computed. Versions Compatible and additional computed target framework versions. SolarTimes solarTimes = new SolarTimes(, 41.9032, -87.6224) ĭateTime sunrise = TimeZoneInfo.ConvertTimeFromUtc((), cst) Ĭonsole.WriteLine($"View the sunrise across Lake Michigan from Oak Street Beach in Chicago at. TimeZoneInfo cst = TimeZoneInfo.FindSystemTimeZoneById("Central Standard Time")

are services that can be used to get time zone from a latitude and longitude position). will need to be adjusted to the time zone where the coordinates are from (there Time will be returned in the current time zone so it Date is not necessary but is included to demonstrate that time input Geo coordinates of Oak Street Beach in Chicago, IL The sample code below shows how to initialize and call the Solar Calculator to get the sunrise and sunset for the given location. InstallingĪdd this to your project in Visual Studio using NuGet Package Manager UI and ID SolarCalculator or using the Package Manager Console. This library uses the method outlined NOAA Solar Calculations Day spreadsheet found at. Calculates the sunrise and sunset for a given date and location (using GEO coordinates).
