crsmithdev/arrow — pull request #2 by mvader (2012-11-21 15:31:04+00:00)
Title: Added since() method

I wrote a simple method in order to obtain the number of s/m/h/d/y elapsed since the date you entered when you created the instance of arrow().

Is as simple as: my_arrow_instance.since()

The time elapsed is calculated converting the datetime to an unix timestamp and then the number of secs/mins/hours/days/years is obtained.

I used the notation s for seconds, m for minutes, d for days, h for hours and y for years.