The Java class library has a class named DateTime. DateTime has this method:
int daysBetween(DateTime other)
which returns the number of days between this and the parameter.
It doesn’t have a method
int secondsBetween(DateTime other)
which I happen to need.
Is there a class which is similar to DateTime but has such a method?
Not familiar with DateTime…
If you have two Dates you can call getTime on them to get millseconds, get the diff and divide by 1000. For example
If you have Calendar objects you can call
and do the same