In perl can we directly get the difference of time given in below format?
Requirement is I have to convert absolute time into relative time:
Input:
2013/06/19 05:16:51:209 INFO
2013/06/19 05:16:54:365 INFO
2013/06/19 05:16:54:365 INFO
Expected output :
000000.000000 INFO
000003.156000 INFO
000003.156000 INFO
So here I have to take 05:16:51:209
as a reference time and make it 0
then need to subtract it with next time.
Please let me know if there is any function available for the same.