Want java code for calculating time between various logs
<pre><code>[Tue Jun 21 16:09:27.530 2011] request_suspend_state: sleep (0-&gt;3) at 263958221465 (2000-01-01 00:04:22.124816866 UTC)
[Tue Jun 21 16:09:27.530 2011] WARNING omaplfb (OMAPLFBPresentSync 235): Unable to sync with display 1!
[Tue Jun 21 16:09:27.530 2011] stop_drawing_early_suspend: timeout waiting for userspace to stop drawing
[Tue Jun 21 16:09:27.530 2011] WARNING omaplfb (OMAPLFBPresentSync 235): Unable to sync with display 1!
[Tue Jun 21 16:09:27.530 2011] PM: Syncing filesystems ... done.
[Tue Jun 21 16:09:27.545 2011] PM: Preparing system for mem sleep
[Tue Jun 21 16:09:27.545 2011] Freezing user space processes ... (elapsed 0.02 seconds) done.
</code></pre>

<p>This is a log file which contains day,time.
I want to calculate time between any two lines.
Kindly help me in this.</p>
