Topic: JAVA 获取系统时间 怎么搞阿??请指教 |
Print this page |
1.JAVA 获取系统时间 怎么搞阿??请指教 | Copy to clipboard |
Posted by: youpolazi Posted on: 2004-05-10 11:01 在线等阿!! |
2.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: javaxml1 Posted on: 2004-05-10 11:03 GregorianCalendar now = new GregorianCalendar( ); |
3.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: tangming Posted on: 2004-05-10 12:54 Calendar.getInstance() |
4.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: zgd Posted on: 2004-05-10 13:34 new java.util.Date(); |
5.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: 4bug Posted on: 2004-05-11 15:36 new java.util.Date(System.currentTimeMillis()) |
6.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: Fantaro Posted on: 2004-05-12 15:41 怎么都只有一句啊,怎么显示出来呢? |
7.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: zgd Posted on: 2004-05-12 17:17 System.out.println(new java.util.Date()); |
8.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: song_sky Posted on: 2004-05-12 23:08 同意zgd的方法,关注其他好的方法 |
9.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: michaelbeyond Posted on: 2004-07-17 16:50 直接使用new Date的方式sun已经不推荐了,他们推荐使用GregorianCalendar 。可是我还有时候在使用那个new Date(),^_^。 |
10.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: zgd Posted on: 2004-07-18 01:34 java.util.Date里的所有方法都不推荐了,除了new Date() |
11.Re:JAVA 获取系统时间 怎么搞阿??请指教 [Re: youpolazi] | Copy to clipboard |
Posted by: doraemon Posted on: 2004-07-18 20:48 import java.util.*; ... System.out.println(new Date()); |
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 |