日期:2014-05-20  浏览次数:20755 次

GMT时间问题
怎么将一个long变量转换为它所表示的GMT时间,并且格式为0000-00-00   00:00:00?

------解决方案--------------------
long longValue = [你的日期];
SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH-mm-ss ");
System.out.println(sdf.format(new Date(longValue)));

------解决方案--------------------
simpledateformat