示例#1
0
        public void TestAbsoluteDay()
        {
            // 1 Jan 1900 is 1 day after 31 Dec 1899
            DateTime calendar = new DateTime(1900, 1, 1);

            Assert.AreEqual(1, DateUtil.AbsoluteDay(calendar, false), "Checking absolute day (1 Jan 1900)");
            // 1 Jan 1901 is 366 days after 31 Dec 1899
            calendar = new DateTime(1901, 1, 1);
            Assert.AreEqual(366, DateUtil.AbsoluteDay(calendar, false), "Checking absolute day (1 Jan 1901)");
        }
示例#2
0
 protected new static int AbsoluteDay(DateTime cal, bool use1904windowing)
 {
     return(DateUtil.AbsoluteDay(cal, use1904windowing));
 }