Numeric to add time-related functionality (see activesupport/lib/active_support/core_ext/numeric/time.rb), giving you some nice sugar for working with time, e.g.:
At the moment, there’s an
#in_milliseconds method which converts a number of seconds to a number of milliseconds (e.g.
5.in_milliseconds == 5000).
However, there isn’t a
#milliseconds monkeypatch. I can imagine this being useful for cases like
I’d be willing to build this; it should be a small change.
What do people think?