English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

We can construct a date object in java including year,month,day, hour,minutes ,seconds using the Date construtor ? whether is there any way to construct a Date object including the milliseconds ? ...

2006-11-19 17:07:04 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

you can use one of the following

Date
DateFormat
Calendar
Timestamp

2006-11-21 12:52:59 · answer #1 · answered by srihari_reddy_s 6 · 0 0

Are you SURE you are looking at the Javadocs for java.util.Date? The only non-deprecated (currently valid) constructors are the default constructor and one that takes a long, representing the time in milliseconds, since midnight, January 1, 1970, GMT. It already maintains the "date" down to the millisecond level.

2006-11-20 08:24:06 · answer #2 · answered by vincentgl 5 · 0 0

fedest.com, questions and answers