コード例 #1
0
        public static void ExampleCode1()
        {
            DateTime datePart = new DateTime(2016, 12, 31);
            DateTime timePart = new DateTime(0001, 1, 1, 11, 59, 59);

            Console.WriteLine(datePart);
            Console.WriteLine(timePart);

            DateTime combinedDate = Extensions.Combined(datePart, timePart);

            Console.WriteLine(combinedDate);

            combinedDate = datePart.AddTime(timePart);

            Console.WriteLine(combinedDate);

            combinedDate = Extensions.AddTime(datePart, timePart);

            int w = 0;

            w.GooIt();
        }