You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incidentally, Ruby appears to lack an equivalent to PHP's DateInterval class.
There's time_diff, but that's been broken for over a year
(abhidsm/time_diff#2). In the end I gave up and went
with a code snippet from Stack Overflow, which is the sort of programming
practice that I despise. Ruby's "optimisation for programmer happiness" isn't
look quite so optimal right now.
So it shows the time diff as 4 weeks and 1 days between February and March, but this should be returning 1 month.
The text was updated successfully, but these errors were encountered: