黑马程序员技术交流社区
标题:
Date类在项目中的一个流程
[打印本页]
作者:
hehaiwei
时间:
2016-3-8 18:25
标题:
Date类在项目中的一个流程
Date类
Date->Long
Date d = new Date()
d.getTime()
d.getTime() = System.currentTimeMillis()
Long->Date
Date d = new Date(Long time)
Date d = new Date()
d.setTime(Long time)
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2