I was just wondering if there is a need of TimeSpan in java.util
so that I can define how much hours,minutes and seconds are there in between these two times.>
In Java 8 a proper time library has been added to the standard API (this is based heavily on JodaTime).
In it there are two classes that you can use to indicate a period:
A detailed explanation of the difference between them can be found in the Java tutorial