There's a gettimeinmilliseconds which is protected. getTime().getTime() returns the milliseconds.
long, int, Integer, it doesn't matter what I use the result is the same. Even if the time difference is only an hour the output isn't correct.
Using this as an example:
compare1: 1077614100712...