package com.itheima;
import java.util.Date;
public class DateDeom01 {
public static void main(String[] args) {
//Date()
Date d1=new Date();
System.out.println(d1);
Date d2=new Date(1000*60*60);
System.out.println(d2);
}
}
执行结果
Sun Nov 06 16:03:35 CST 2022
Thu Jan 01 09:00:00 CST 1970
Process finished with exit code 0
标签:构造方法,System,60,Date,CST,d2
From: https://www.cnblogs.com/cy-xt/p/16862853.html