JAVA±¨±íÁ½ÈÕÆÚ¼äÔ£¬ÖÜ£¬ÈÕ¼ÆËã
//¼ÆËãÌìÊý
public List day(String dates,String datee) throws ParseException{
List dayls=new ArrayList();
// ×Ö·û´®×ª»»³ÉÈÕÆÚ
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
Date startDate = format.parse(dates);
Calendar startTime = Calendar.getInstance();
startTime.clear();
startTime.setTime(startDate);
int startYear = startTime.get(Calendar.YEAR);
int startMonth = startTime.get(Calendar.MONTH);
int startDay = startTime.get(Calendar.DAY_OF_MONTH);
Date endDate = format.parse(datee);
Calendar endTime = Calendar.getInstance();
endTime.clear();
endTime.setTime(endDate);
int endYear = endTime.get(Calendar.YEAR);
int endMonth = endTime.get(Calendar.MONTH);
int endDay = endTime.get(Calendar.DAY_OF_MONTH);
int count = 0;
for (int x = startYear; x <= endYear; x++) {
// ÂÞÂíÀú·¨²úÉúÄê·Ý¹«Ôª1582Äê
int gregorianCutoverYear = 1582;
// ÅжÏÊÇ·ñÊÇÈòÄê
boolean isLeapYear = x >= gregorianCutoverYear ? ((x % 4 == 0) && ((x % 100 != 0) || (x % 400 == 0)))
: (x % 4 == 0);
// »ñÈ¡¿ªÊ¼ÔµÄ×î´óÌìÊý£»´óÔÂÊÇ1£¬3£¬5£¬7£¬8£¬10£¬12£»Ð¡ÔÂÊÇ4£¬6£¬9£¬11£»ÌØÊâÔÂÊÇ2
int max = 0;
if (startMonth == 1) {
if (isLeapYear) {
max = 29;
}
if (!isLeapYear) {
max = 28;
}
}
if (startMonth == 3 || startMonth == 5 || startMonth == 8
|| startMonth == 10) {
max = 30;
}
if (startMo
Ïà¹ØÎĵµ£º
¡¡ ¡¡¡¡
¡¡¡¡Èí¼þ¿ª·¢Ö®Â·ÊdzäÂú¾£¼¬ÓëÌôս֮·,Ò²ÊdzäÂúÏ£Íû֮·¡£JAVAѧϰҲÊÇÈç´Ë£¬Ã»Óнݾ¶¿É×ß¡£ÃÎÏëÏñ¡¶ÌìÁú°Ë²¿¡·ÖÐÐéÖñÒ»Ñù±»ÎÞÑÂ×Óõ®õ¹à¶¥¶øÇáËÉ»ñµÃÒ»¼××Ó¹¦Á¦£¬ÊǺܲ»ÏÖʵµÄ¡£Ã¿ÌìÑöÌì´ó½Ð"ÌìÉñ°¡£¬Çë´Í¸øÎÒÒ»±¾¿û»¨±¦µä°É"£¬Êâ²»Öª¼´Ê¹Äã»ñµÃÁË¿û»¨±¦µä£¬³ýÁËÊÜ×Ô¹¬ÆäÉíÖ®¿àÍ⣬ÄãÒ²²»Ò»¶¨³ÉµÃÁË"¶«·½² ......
±¾ÎÄÀ´×ÔCSDN²©¿Í£ºhttp://blog.csdn.net/xyk0830/archive/2007/11/06/1869638.aspx
ÃüÁîÐиñʽ£º
native2ascii.exe -[options] [inputfile [outputfile]]
ÆäÖУº
¡¡¡¡-[options]±íʾÃüÁ¹Ø£¬ÓÐÁ½¸öÑ¡Ïî¿É¹©Ñ¡Ôñ£º
¡¡¡¡¡¡¡¡-reverse£ºÓÃLatin-1»òUnicode±àÂë°ÑÎļþת»»³É±¾µØ±àÂë¸ñʽ
¡¡¡¡¡¡¡¡-encoding ......
ÔÚJSPÀ»ñÈ¡¿Í»§¶ËµÄIPµØÖ·µÄ·½·¨ÊÇ£ºrequest.getRemoteAddr()£¬ÕâÖÖ·½·¨Ôڴ󲿷ÖÇé¿ö϶¼ÊÇÓÐЧµÄ¡£µ«ÊÇÔÚͨ¹ýÁËApache,SquidµÈ·´Ïò´úÀíÈí¼þ¾Í²»ÄÜ»ñÈ¡µ½¿Í»§¶ËµÄÕæÊµIPµØÖ·ÁË¡£
Èç¹ûʹÓÃÁË·´Ïò´úÀíÈí¼þ£¬½«http://192.168.1.110:2046/ µÄURL·´Ïò´úÀíΪhttp://www.xxx.com/ µÄURLʱ£¬ÓÃrequest.getRemoteAddr()·½ ......
×÷Õßͨ¹ýʹÓÃJAVAÖеĶ¯Ì¬´úÀíʵÏÖÊý¾Ý¿âÁ¬½Ó³Ø£¬Ê¹Ê¹ÓÃÕß¿ÉÒÔÒÔÆÕͨµÄjdbcÁ¬½ÓµÄʹÓÃϰ¹ßÀ´Ê¹ÓÃÁ¬½Ó³Ø¡£
Êý¾Ý¿âÁ¬½Ó³ØÔÚ±àдӦÓ÷þÎñÊǾ³£ÐèÒªÓõ½µÄÄ£¿é£¬Ì«¹ýƵ·±µÄÁ¬½ÓÊý¾Ý¿â¶Ô·þÎñÐÔÄÜÀ´½²ÊÇÒ»¸öÆ¿¾±£¬Ê¹Óûº³å³Ø¼¼Êõ¿ÉÒÔÀ´Ïû³ýÕâ¸öÆ¿¾±¡£ÎÒÃÇ¿ÉÒÔÔÚ»¥ÁªÍøÉÏÕÒµ½ºÜ¶à¹ØÓ ......
public class MyEclipseGen {
private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up ......