Topic: Date类能不能获取系统当前时间的毫秒数的?

  Print this page

1.Date类能不能获取系统当前时间的毫秒数的? Copy to clipboard
Posted by: kirk
Posted on: 2003-04-28 19:51

有什么方法?

2.Re:Date类能不能获取系统当前时间的毫秒数的? [Re: kirk] Copy to clipboard
Posted by: kirk
Posted on: 2003-04-28 20:45

就象获的秒数用getSecond()一样啊,有方法求吗?

3.Re:Date类能不能获取系统当前时间的毫秒数的? [Re: kirk] Copy to clipboard
Posted by: why
Posted on: 2003-04-29 10:18

http://java.sun.com/products/jdk/1.2/docs/api/java/util/Date.html
the getXXXX methods of java.util.Date are deprecated, use the get method of java.util.Calendar class instead, e.g.
java.util.Calendar.getInstance().get(java.util.Calendar.MILLISECOND);
http://java.sun.com/j2se/1.4.1/docs/api/java/util/Date.html


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923