ri > ActiveSupport::Duration

= ActiveSupport::Duration < Object

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
Provides accurate date and time measurements using Date#advance and
Time#advance, respectively. It mainly supports the methods on Numeric.

  1.month.ago       # equivalent to Time.now.advance(months: -1)


------------------------------------------------------------------------
= Constants:

PARTS:
  [not documented]

PARTS_IN_SECONDS:
  [not documented]

SECONDS_PER_DAY:
  [not documented]

SECONDS_PER_HOUR:
  [not documented]

SECONDS_PER_MINUTE:
  [not documented]

SECONDS_PER_MONTH:
  [not documented]

SECONDS_PER_WEEK:
  [not documented]

SECONDS_PER_YEAR:
  [not documented]


= Class methods:

  build
  parse

= Instance methods:

  %
  *
  +
  -
  /
  <=>
  ==
  after
  ago
  before
  eql?
  from_now
  hash
  in_days
  in_hours
  in_minutes
  in_months
  in_seconds
  in_weeks
  in_years
  iso8601
  parts
  since
  to_i
  to_s
  until
  value

= Attributes:

  attr_accessor parts
  attr_accessor value

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 16:18 @216.73.216.250
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!