Date 类封装的是系统的当前时间.。但是Date已经过时了,sun推荐使用Calendar类。 Calendar: 该类是一个日历的类,封装了年月日时分秒时区。 转载于:https://www.cnblogs.com/wbh-hello/p/5973237.html