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);
}
}
java打印系统时间
猜你喜欢
转载自www.cnblogs.com/THEONLYLOVE/p/9117650.html
今日推荐
周排行