锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品一区二区在线,在线日韩av,亚洲一区二区日韩http://www.aygfsteel.com/liuyimx/category/40774.html鎬濆康鑽夊師zh-cnTue, 11 Aug 2009 16:48:38 GMTTue, 11 Aug 2009 16:48:38 GMT60- 璁$畻涓や釜鏃ユ湡涔嬮棿鐨勫ぉ鏁?/title>http://www.aygfsteel.com/liuyimx/articles/289793.htmlliuyimxliuyimxTue, 04 Aug 2009 08:01:00 GMThttp://www.aygfsteel.com/liuyimx/articles/289793.htmlhttp://www.aygfsteel.com/liuyimx/comments/289793.htmlhttp://www.aygfsteel.com/liuyimx/articles/289793.html#Feedback0http://www.aygfsteel.com/liuyimx/comments/commentRss/289793.htmlhttp://www.aygfsteel.com/liuyimx/services/trackbacks/289793.html
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
class Test2 {
public static String getDate(){
SimpleDateFormat ft = new SimpleDateFormat("yyyy/MM/dd");
Date dd = new Date();
return ft.format(dd);
}
public static long getQuot(String time1, String time2){
long quot = 0;
SimpleDateFormat ft = new SimpleDateFormat("yyyy/MM/dd");
try {
Date date1 = ft.parse( time1 );
Date date2 = ft.parse( time2 );
quot = date1.getTime() - date2.getTime();
quot = quot / 1000 / 60 / 60 / 24;
} catch (ParseException e) {
e.printStackTrace();
}
return quot;
}
public static void main(String[] args) throws Exception {
String date1 = "2008/8/8";
String date2 = getDate();
long day = getQuot(date1,date2);
System.out.println( "璺濈 "+date1+" 榪樻湁 "+day+" 澶?/span>" );
}
}

]]> - 鏈湀鏈夊灝戝ぉhttp://www.aygfsteel.com/liuyimx/articles/289792.htmlliuyimxliuyimxTue, 04 Aug 2009 08:00:00 GMThttp://www.aygfsteel.com/liuyimx/articles/289792.htmlhttp://www.aygfsteel.com/liuyimx/comments/289792.htmlhttp://www.aygfsteel.com/liuyimx/articles/289792.html#Feedback0http://www.aygfsteel.com/liuyimx/comments/commentRss/289792.htmlhttp://www.aygfsteel.com/liuyimx/services/trackbacks/289792.html
Calendar calendar = Calendar.getInstance();
calendar.set(calendar.get(Calendar.YEAR),
calendar.get(Calendar.MONTH),1);
calendar.roll(Calendar.DATE, false);
System.out.println(calendar.get(Calendar.DATE));

]]> - 鎵懼埌鏈湀鏈鍚庝竴澶?/title>http://www.aygfsteel.com/liuyimx/articles/289784.htmlliuyimxliuyimxTue, 04 Aug 2009 07:42:00 GMThttp://www.aygfsteel.com/liuyimx/articles/289784.htmlhttp://www.aygfsteel.com/liuyimx/comments/289784.htmlhttp://www.aygfsteel.com/liuyimx/articles/289784.html#Feedback0http://www.aygfsteel.com/liuyimx/comments/commentRss/289784.htmlhttp://www.aygfsteel.com/liuyimx/services/trackbacks/289784.html GregorianCalendar gc = new GregorianCalendar(2009,1,1);//浜屾湀1鍙?br />
int maxDate = gc.getActualMaximum(Calendar.DATE); //鑾峰緱浜屾湀鏈鍚庝竴澶╁搴旂殑int鍊鹼紝28
int minDate = gc.getActualMinimum(Calendar.DATE);//鑾峰緱浜屾湀絎竴澶╁搴旂殑int鍊?br />
System.out.println(maxDate);
System.out.println(minDate);
gc.set(Calendar.DATE, maxDate);//璁劇疆gc瀵瑰簲鏃ユ湡涓轟簩鏈堟渶鍚庝竴澶?
System.out.println(gc.getTime());

]]>
主站蜘蛛池模板:
中方县|
青岛市|
新干县|
分宜县|
景谷|
兰考县|
兴义市|
镶黄旗|
罗定市|
理塘县|
南溪县|
江口县|
远安县|
定陶县|
社旗县|
农安县|
嘉义县|
类乌齐县|
伊吾县|
增城市|
福清市|
峨山|
公安县|
莲花县|
景东|
霞浦县|
循化|
保康县|
崇文区|
上饶县|
宜宾县|
平山县|
江都市|
修文县|
桑日县|
湟源县|
汉源县|
田东县|
定安县|
福鼎市|
兰西县|