SimpleDateFormat dataF = new SimpleDateFormat("HH:mm:ss"); 
    Date d=new Date(1000);
    String dStr=dataF.format(d);
    System.out.println(dStr); 为什么啊

解决方案 »

  1.   

    -1000===>1970-01-01 07:59:59
    0=======>1970-01-01 08:00:00
      

  2.   

    是不是时区问题啊?
    the milliseconds since January 1, 1970, 00:00:00 GMT.
    (GMT+08:00) 北京,重庆,香港特别行政区,乌鲁木齐
      

  3.   

    dataF.setTimeZone(TimeZone.getTimeZone("GMT"));
      

  4.   

    treeroot(旗鲁特)  强
      

  5.   

    mm和MM一个表示分钟,一个表示月份,你是不是写错了?
      

  6.   

    大家要是不忙的话,帮我解释一下这个问题好吗?
    http://community.csdn.net/Expert/topic/4756/4756141.xml?temp=.6675684
      

  7.   

    http://community.csdn.net/Expert/topic/4761/4761463.xml?temp=.5318262
      

  8.   

    http://community.csdn.net/Expert/TopicView1.asp?id=4761463
      

  9.   

    这个在张孝祥java视频教程第八课上有讲!好像是跟时区有关!
    具体怎样我也记不清了!