Look at java.lang.System.currentTimeMillis() and build something around it.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Costi Ciudatu
Ranch Hand
Joined: Oct 24, 2006
Posts: 74
posted
0
Also, if you simply instantiate a java.util.Date object with the default constructor (new Date()) that will reflect the current time.
The same applies to java.util.Calendar.getInstance().