嶄忽滴煽麻隈java糞? - 園殻秘壇利
作者 佚名技术
来源 NET编程
浏览
发布时间 2012-06-22
chineseMonth = 0; chineseDate = 0; sectionalTerm = 0; principleTerm = 0; } public static boolean isGregorianLeapYear(int year) { boolean isLeap = false; if (year%4==0) isLeap = true; if (year%100==0) isLeap = false; if (year%400==0) isLeap = true; return isLeap; } public static int daysInGregorianMonth(int y, int m) { int d = daysInGregorianMonth[m-1]; if (m==2 && isGregorianLeapYear(y)) d++; // 巷煽避定屈埖謹匯爺 return d; } public static int dayOfYear(int y, int m, int d) { int c = 0; for (int i=1; i<m; i++) { c = c + daysInGregorianMonth(y,i); } c = c + d; return c; } public static int dayOfWeek(int y, int m, int d) { int w = 1; // 巷煽匯定匯埖匯晩頁佛豚匯?侭參軟兵峙葎佛豚晩 y = (y-1)%400 + 1; // 巷煽佛豚峙蛍何 400 定儉桟匯肝 int ly = (y-1)/4; // 避定肝方 ly = ly - (y-1)/100; ly = ly + (y-1)/400; int ry = y - 1 - ly; // 械定肝方 w = w + ry; // 械定佛豚峙奐匯 w = w + 2*ly; // 避定佛豚峙奐屈 w = w + dayOfYear(y,m,d); w = (w-1)%7 + 1; return w; } private static char[] chineseMonths = { // 滴煽埖芸寄弌儿抹燕?曾倖忖准燕幣匯定。曾倖忖准慌噴鎗倖屈序崙了方? // 念膨倖了方燕幣避埖埖芸?朔噴屈倖了方燕幣噴屈倖滴煽埖芸議寄弌。 0x00,0x04,0xad,0x08,0x5a,0x01,0xd5,0x54,0xb4,0x09,0x64,0x05,0x59,0x45, 0x95,0x0a,0xa6,0x04,0x55,0x24,0xad,0x08,0x5a,0x62,0xda,0x04,0xb4,0x05, 0xb4,0x55,0x52,0x0d,0x94,0x0a,0x4a,0x2a,0x56,0x02,0x6d,0x71,0x6d,0x01, 0xda,0x02,0xd2,0x52,0xa9,0x05,0x49,0x0d,0x2a,0x45,0x2b,0x09,0x56,0x01, 0xb5,0x20,0x6d,0x01,0x59,0x69,0xd4,0x0a,0xa8,0x05,0xa9,0x56,0xa5,0x04, 0x2b,0x09,0x9e,0x38,0xb6,0x08,0xec,0x74,0x6c,0x05,0xd4,0x0a,0xe4,0x6a, 0x52,0x05,0x95,0x0a,0x5a,0x42,0x5b,0x04,0xb6,0x04,0xb4,0x22,0x6a,0x05, 0x52,0x75,0xc9,0x0a,0x52,0x05,0x35,0x55,0x4d,0x0a,0x5a,0x02,0x5d,0x31, 0xb5,0x02,0x6a,0x8a,0x68,0x05,0xa9,0x0a,0x8a,0x6a,0x2a,0x05,0x2d,0x09, 0xaa,0x48,0x5a,0x01,0xb5,0x09,0xb0,0x39,0x64,0x05,0x25,0x75,0x95,0x0a, 0x96,0x04,0x4d,0x54,0xad,0x04,0xda,0x04,0xd4,0x44,0xb4,0x05,0x54,0x85, 0x52,0x0d,0x92,0x0a,0x56,0x6a,0x56,0x02,0x6d,0x02,0x6a,0x41,0xda,0x02, 0xb2,0xa1,0xa9,0x05,0x49,0x0d,0x0a,0x6d,0x2a,0x09,0x56,0x01,0xad,0x50, 0x6d,0x01,0xd9,0x02,0xd1,0x3a,0xa8,0x05,0x29,0x85,0xa5,0x0c,0x2a,0x09, 0x96,0x54,0xb6,0x08,0x6c,0x09,0x64,0x45,0xd4,0x0a,0xa4,0x05,0x51,0x25, 0x95,0x0a,0x2a,0x72,0x5b,0x04,0xb6,0x04,0xac,0x52,0x6a,0x05,0xd2,0x0a, |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于嶄忽滴煽麻隈java糞? - 園殻秘壇利的所有评论