java打印系统时间

public class Time {
public static void main(String[] args) {
Date t = new Date();
DateFormat ti = new SimpleDateFormat("yyyy年MM月dd日 hh:mm:ss");
String s = ti.format(t);
System.out.println("现在是佛山时间:"+s);
}
}
原文地址:https://www.cnblogs.com/THEONLYLOVE/p/9117650.html