I have time data split in two strings – one string for date, and one for time.
I want to calculate the diff. of such two times in Java.
e.g.
- time 1:”26/02/2011″ and “11:00 AM”
- time 2:”27/02/2011″ and “12:15 AM”
Difference would be like 13 hours 15 minutes.
Obs: This is only valid as an aproximation. See Losing Time on the Garden Path.)