//返回阴历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; }