int
getHours()
          Deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.HOUR_OF_DAY).
 int getMinutes()
          Deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.MINUTE).
 int getMonth()
          Deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.MONTH).
 int
getSeconds()
          Deprecated. As of JDK version 1.1, replaced by Calendar.get(Calendar.SECOND).
Use Calendar but not a Date
yours, Andrew
----- Original Message -----
Sent: Tuesday, November 16, 1999 7:53 PM
Subject: Deprecation of java.util.Date methods

Hello Everyone,
Can anyone tell me what is new method for replacing the following:
 
java.util.Date myDate = new java.util.Date();
String myString = myDate.getHours() + myDate.getMinutes() + myDate.getSeconds();
 
I am using jdk1.2.2 . There is a warning that these methods has been deprecated. I was unable to find anything on this deprecation at sun's site.
 
Thanks,
 
*Antonio* 
 
 

Reply via email to