Do we have a TimeSpan sort of class in Java
问题 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. From this TimeSpan we can have a time interval between two times. like TimeSpan getTimeSpan( Date before, Date after ){...} or long timeSpan = System.currentTimeMillis(); // ... long job timeSpan = System.currentTimeMillis() - timeSpan; TimeSpan ts = new TimeSpan(timeSpan); and with this TimeSpan we can use it in SimpleDateFormat .