mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-01-29 01:31:54 -05:00
Fixed lingering documentation and code that refers to a limited year range for calculating Pluto's position.
26 lines
829 B
C#
26 lines
829 B
C#
using System;
|
|
using CosineKitty;
|
|
using demo_helper;
|
|
|
|
namespace seasons
|
|
{
|
|
class Program
|
|
{
|
|
static int Main(string[] args)
|
|
{
|
|
int year;
|
|
if (args.Length != 1 || !int.TryParse(args[0], out year))
|
|
{
|
|
Console.WriteLine("ERROR: Must provide a year value on the command line.");
|
|
return 1;
|
|
}
|
|
SeasonsInfo seasons = Astronomy.Seasons(year);
|
|
Console.WriteLine("March equinox : {0}", seasons.mar_equinox);
|
|
Console.WriteLine("June solstice : {0}", seasons.jun_solstice);
|
|
Console.WriteLine("September equinox : {0}", seasons.sep_equinox);
|
|
Console.WriteLine("December solstice : {0}", seasons.dec_solstice);
|
|
return 0;
|
|
}
|
|
}
|
|
}
|