time_difference
time_difference copied to clipboard
The missing Ruby method to print out time difference (duration) in year, month, week, day, hour, minute, and second.
I'm trying to use TimeDifference to find the difference in months between two dates. I'd expect the difference between 2017-09-04 and 2017-12-04 to be exactly 3.0. But this happens: ```ruby...
This adds a method that does a more "human" calculation of months, taking into account calendar time in the current timezone (so you always get an integer number of months...
Hi, Thank you for the convenient gem! My use case is to compare the duration of transformation steps, hence I added to compare time differences and be able to use...
Update activesupport to 6.0. #44
Add Magic comment frozen string literal
* Supports inclusive vs exclusive date ranges * Respects timezones * Correctly calculates differences over leap years (does not assume 365.25 days in a year or 30.42 days in a...
Can we use this gem when we want end date as inclusive? and does it handle the time zones and DST changes?? I want to use it as billing duration?
Add String examples to the README + fix a few typos.
for example, I would like to ask "how many 3 day periods elapsed between $x and $y"? "3" could be a variety of numbers. I suspect supporting all the `components`...