Hi there,

java.util.GregorianCalendar gc = new GregorianCalendar();
String myString = gc.get(Calendar.HOUR_OF_DAY) + ":" +
gc.get(Calendar.MINUTE) + ":" + gc.get(Calendar.SECOND);

Best regards
Christian

-----Oprindelig meddelelse-----
Fra:    Antonio Villafana [SMTP:[EMAIL PROTECTED]]
Sendt:  16. november 1999 14:54
Til:    [EMAIL PROTECTED]
Emne:   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*

 <<Fil: ATT00010.htm>>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to