已收藏
收藏
Date类:直接new Date()取得当前日期时间。
long可以描述Date()类,
将long变为Date型数据,public Date(long date)
将Date变为long型数据:getTime().