Exemplo n.º 1
0
        //public static void PrintTime()
        //{ Console.WriteLine(DateTime.Now.ToShortTimeString()); }
        //public static void PrintDate()
        //{ Console.WriteLine(DateTime.Today.ToShortDateString()); }

        public static void PrintTime()
        {
            WriteLine(Now.ToShortTimeString());
        }
 public static void PrintTime()
 => System.Console.WriteLine(Now.ToShortTimeString());