quote:Originally posted by UTI
No... cause you'd need to add in leap years and such.
I dunno exactly for Java, but in any other language I know Date objects are in milliseconds or at least in seconds or another form which you can substract from each other.
You do not need to take in account leap years, lead days and leap seconds. This is automatically done as the calenders of the objects use Gregorian calenders.
But as said, I dunno if this is also the case in Java (but I would be surprised if it wasn't)...
This post was edited on 11-12-2006 at 12:43 AM by CookieRevised.