Esempio n. 1
0
        public void RecalculateTimes()
        {
            SunsetTimeSt           = AstroUtilsProp.SunSetDateTime().ToString("HH:mm");
            CivTwilightEndTimeSt   = AstroUtilsProp.CivilTwilightSetDateTime().ToString("HH:mm");
            NavTwilightEndTimeSt   = AstroUtilsProp.NautTwilightSetDateTime().ToString("HH:mm");
            AstroTwilightEndTimeSt = AstroUtilsProp.AstronTwilightSetDateTime().ToString("HH:mm");

            AstroTwilightBegTimeSt = AstroUtilsProp.AstronTwilightRiseDateTime().ToString("HH:mm");
            NavTwilightBegTimeSt   = AstroUtilsProp.NautTwilightRiseDateTime().ToString("HH:mm");
            CivTwilightBegTimeSt   = AstroUtilsProp.CivilTwilightRiseDateTime().ToString("HH:mm");
            SunriseTimeSt          = AstroUtilsProp.SunRiseDateTime().ToString("HH:mm");
        }
Esempio n. 2
0
        static void TimeConversionExample()
        {
            string SunsetTimeSt = AstroUtilsProp.SunSetDateTime().ToString("HH:mm");

            Console.WriteLine("SunsetTimeSt:" + SunsetTimeSt);
            string CivTwilightEndTimeSt = AstroUtilsProp.CivilTwilightSetDateTime().ToString("HH:mm");

            Console.WriteLine("CivTwilightEndTimeSt: " + CivTwilightEndTimeSt);
            string NavTwilightEndTimeSt = AstroUtilsProp.NautTwilightSetDateTime().ToString("HH:mm");

            Console.WriteLine("NavTwilightEndTimeSt: " + NavTwilightEndTimeSt);
            string AstroTwilightEndTimeSt = AstroUtilsProp.AstronTwilightSetDateTime().ToString("HH:mm");

            Console.WriteLine("AstroTwilightEndTimeSt: " + AstroTwilightEndTimeSt);

            string AstroTwilightBegTimeSt = AstroUtilsProp.AstronTwilightRiseDateTime().ToString("HH:mm");

            Console.WriteLine("AstroTwilightBegTimeSt: " + AstroTwilightBegTimeSt);

            //NavTwilightBegTimeSt = AstroUtilsProp.NautTwilightRiseDateTime().ToString("HH:mm");
            //CivTwilightBegTimeSt = AstroUtilsProp.CivilTwilightRiseDateTime().ToString("HH:mm");
            //SunriseTimeSt = AstroUtilsProp.SunRiseDateTime().ToString("HH:mm");
        }