|
楼主 |
发表于 2006-6-25 17:58
|
显示全部楼层
不明之处:
不知道下面代码具体的作用是什么??
然后那些(-5*60*60*1000); (-5*60*60*1000,timezoneIDs[0]);(Calendar.APRIL,1,Calendar.SUNDAY,2*60*60*1000);之类的东西又有什么用
之前都没接触过这些东西,
看不懂:L
基本上下面这大断代码看的是一头雾水,不知道什么跟什么
//假定交易发生在NYSE、NASDAQ交易所
String[] timezoneIDs = TimeZone.getAvailableIDs(-5*60*60*1000);
SimpleTimeZone est = new SimpleTimeZone(-5*60*60*1000,timezoneIDs[0]);
//提供规则
est.setStartRule(Calendar.APRIL,1,Calendar.SUNDAY,2*60*60*1000);
est.setEndRule(Calendar.OCTOBER,-1,Calendar.SUNDAY,2*60*60*1000);
//获得calendar实例
Calendar cal = new GregorianCalendar(est);//把est作为参数?也不明白 |
|