<%Long time=System.currentTimeMillis();%>
<%Date time1=new Date();%>
本文介绍了一种使用Java来获取当前日期和时间的方法。通过实例展示了如何利用System.currentTimeMillis()获取当前时间戳,以及如何使用new Date()创建Date对象来表示当前日期时间。
<%Long time=System.currentTimeMillis();%>
<%Date time1=new Date();%>
811
2172

被折叠的 条评论
为什么被折叠?