java按照指定格式输出系统时间使用SimpleDateFormat方法时间:2023-03-09 13:40:47 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); }}