How to find time difference?

I have a file wich contains time formats and i need to get the time difference

TIME1 TIME2

20120624192555.6Z 20120624204006.5Z

which means first date 2012/6/24 19:25:55,second date 2012/6/24 20:40:06 so when i get the time difference the answer will be 1:14:11

The time above "20120624192555.6Z " is the problem , how to let the unix subtract time or even transfer times to something we can understand.

Ill be glad if anyone can support.

Im new to unix but i think this is not an easy thing :slight_smile:

Thread closed, continue here:

1 Like