之前xp环境下,用DateFormat d2 = DateFormat.getDateTimeInstance();转换下就可以了。不过部署到linux下就会报错,所以想请教下linux环境下获取linux系统当前时间的代码。。急求