Module: Taw
- Defined in:
- lib/taw.rb,
lib/taw/version.rb
Defined Under Namespace
Classes: Calculator
Constant Summary collapse
- MINUTE_IN_SECONDS =
60
- HOUR_IN_SECONDS =
MINUTE_IN_SECONDS * 60
- DAY_IN_SECONDS =
HOUR_IN_SECONDS * 24
- WEEK_IN_SECONDS =
DAY_IN_SECONDS * 7
- MONTH_IN_SECONDS =
DAY_IN_SECONDS * 30
- YEAR_IN_SECONDS =
MONTH_IN_SECONDS * 12
- VERSION =
"1.2.0"
Class Method Summary collapse
Class Method Details
.time_ago_in_words(time, opts = {}) ⇒ Object
11 12 13 |
# File 'lib/taw.rb', line 11 def self.time_ago_in_words(time, opts = {}) Calculator.new(opts).time_ago_in_words(time) end |