Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dateformat 1000*60*60*24

807600Nov 21 2007 — edited Nov 21 2007
Good Day:

As far as I know the date calculation in other languages, it should be 60*60*24 but what I got from a Java code is 1000*60*60*24. Anyone can tell me where is the 1000 come from?

if to be precise:

d.setTime((1000*60*60*24) + d.getTime());

why?


thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2007
Added on Nov 21 2007
3 comments
3,311 views