time_difference icon indicating copy to clipboard operation
time_difference copied to clipboard

Add an in_calendar_months feature

Open pedantic-git opened this issue 7 years ago • 3 comments

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 and the 4th of the month to the 4th of the month is always 1 month).

It doesn't touch in_components or in_general and it could probably be refactored slightly to be a shorter method, but it does the job I need!

Let me know what you think or if you'd like me to change anything.

pedantic-git avatar Dec 04 '17 13:12 pedantic-git

I'm also interested in methods like in_calendar_years. Maybe, this can be an option, like in_years(calendar: true), in_months(calendar: true) and even in_general(calendar: true).

AlexWayfer avatar Feb 14 '19 21:02 AlexWayfer

For note: there is the fork with such methods: https://github.com/IQTHINK/time_difference

AlexWayfer avatar Feb 14 '19 21:02 AlexWayfer

no updates on this?

joecabezas avatar Dec 18 '19 23:12 joecabezas