Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            /*String a = "1 2 3 4\t4 5 6 7\t8 9 10 11\t12 13 14 15";
             * MyMatrix matrix = new MyMatrix(a);
             *
             * Console.WriteLine(matrix);*/

            MyTime myTime  = new MyTime(7, 59, 59);
            MyTime myTime2 = new MyTime(21, 57, 59);

            Console.WriteLine(myTime.ToString());
            Console.WriteLine("Number of seconds from the beginning of the day -- " + TimeSinceMidnight(myTime));
            Console.WriteLine("Translated seconds to time -- " + TimeSinceMidnight(28799));
            Console.WriteLine("One second is added to the time -- " + AddOneSecond(myTime));
            Console.WriteLine("One minute is added to the time -- " + AddOneMinute(myTime));
            Console.WriteLine("One hour is added to the time -- " + AddOneHour(myTime));
            Console.WriteLine("The difference between the two points -- " + Difference(myTime, myTime2));
            Console.WriteLine("Add seconds to time -- " + AddSeconds(myTime, 28799));
            Console.WriteLine(WhatLesson(myTime));
        }