//返回陰歷iLunarYear年的總天數 1901年1月---2050年12月 public int LunarYearDays(ushort iLunarYear) { int Days; uint tmp; if ((iLunarYear < START_YEAR) || (iLunarYear > END_YEAR)) { return 0;}; Days = 0; for (ushort i=1; i <= 12; i++) { tmp = LunarMonthDays(iLunarYear, i); Days = Days + ((ushort)(tmp>>16) & 0xFFFF); //取高位 Days = Days + (ushort)(tmp); //取低位 } return Days; }