whats the unit for your time difference measurement? in second, minute, hour or date?

解决方案 »

  1.   


    http://community.csdn.net/Expert/topic/3903/3903003.xml?temp=.2804071
    如果是String先用SimpleDateFormat 的parse转为Date
    散发ing
    http://community.csdn.net/Expert/topic/3908/3908698.xml?temp=.3004877
      

  2.   

    如何创建一个给定时期的Date或者Calendar类呢?我看到Date d = new Date(year,month,date)的构造方法已经被Calendar.set(int,int,int)取代了,但是用Calendar.set设置,确总是无法得到正确时间
    谁能给个正确创建日期类的代码?比如,2005年,4月,5日