I am trying to understand something about getTime(), My problem is, I am setting a new date , and say: 23.07.2012 . When I use getTime(), I have to get milliseconds since 01.01.1970. When I divide the value that I get from getTime()with (1000 * 60 * 60 * 24) , I have to get the number of days elapsed from 01.01.1970 until 05.07.22012 , but somehow I get the number with a decimal point (15543.875) I donโt understand why, I mean, starting from 01.01.1970 strong> and 23.07.22012 I have to get an integer (this is what I think), I know that I am really mistaken if someone can help me understand why the decimal point is the result.
source
share