|
-
Jun 5th, 2002, 08:59 PM
#1
Thread Starter
PowerPoster
Have a Java Q...
How can I get the current system time in JAva?
I have another thread in the Java forum, but for some reason this computer won't let me C&P the link...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Jun 5th, 2002, 09:29 PM
#2
There are a bunch of ways to format the current time in the java.util.Calendar class.
http://java.sun.com/j2se/1.3/docs/ap.../Calendar.html
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 5th, 2002, 09:42 PM
#3
Member
Whatever you do, don't use java.util.Date, virtually everything in that class has been deprecated since about JDK 1.1.
-
Jun 5th, 2002, 09:45 PM
#4
Thread Starter
PowerPoster
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Jun 6th, 2002, 02:32 AM
#5
You dont have to kill it.. The Java garbage collector will take care of it after awhile. Though Id recommend killing it when your done using it.
-
Jun 6th, 2002, 05:31 PM
#6
Thread Starter
PowerPoster
Ok, how do I kill stuff in Java, and more specifically, how do I kill this one, because it doesn't use the New keyword to instantiate, it has a .getInstance() function for that...
-----------------------------------------
-RJ
[email protected]
-----------------------------------------
-
Jun 6th, 2002, 06:07 PM
#7
-
Jun 6th, 2002, 06:15 PM
#8
Fanatic Member
Originally posted by filburt1
Whatever you do, don't use java.util.Date, virtually everything in that class has been deprecated since about JDK 1.1.
Bacon Sandwich?
-
Jun 6th, 2002, 06:20 PM
#9
Fanatic Member
Originally posted by Bonker Gudd
Bacon Sandwich?
U stole that!!!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|