When working on our new project - Horntell (more on it later), we needed to show a time as difference with the current time.
Eg. If it is June 07, 2014 02:11:32AM now. We wanted to find out how long ago a given date, say June 06, 2014 11:00:12PM, would be in human understandable form. In this case, it would be 3 hours ago.
When building the algorithm for ourselves, I decided to open source it and keep improving it in time to come. I am calling it Sundial and I will keep on improving it as the time permits.
If you want to checkout the project or use it in your own projects, please feel free to fork it or clone it from Github.