java按照指定格式输出系统时间使用SimpleDateFormat方法

public class TimeThree {
public static void main(String[] args) {
SimpleDateFormat d = new SimpleDateFormat("yyyy-MM-dd E HH:mm:ss");
Date date = new Date();
d.format(date);
System.out.println(date);
}
}
原文地址:https://www.cnblogs.com/THEONLYLOVE/p/9117741.html