{
    "mode": "ri",
    "parameter": "ActiveSupport::Duration",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/ActiveSupport%3A%3ADuration/json",
    "generated": "2026-07-31T07:05:24Z",
    "sections": {
        "ActiveSupport::Duration < Object": {
            "content": "(from /home/chedong/.local/share/rdoc)\n------------------------------------------------------------------------\nProvides accurate date and time measurements using Date#advance and\nTime#advance, respectively. It mainly supports the methods on Numeric.\n\n1.month.ago       # equivalent to Time.now.advance(months: -1)\n\n\n------------------------------------------------------------------------",
            "subsections": []
        },
        "Constants:": {
            "content": "PARTS:\n[not documented]\n\nPARTSINSECONDS:\n[not documented]\n\nSECONDSPERDAY:\n[not documented]\n\nSECONDSPERHOUR:\n[not documented]\n\nSECONDSPERMINUTE:\n[not documented]\n\nSECONDSPERMONTH:\n[not documented]\n\nSECONDSPERWEEK:\n[not documented]\n\nSECONDSPERYEAR:\n[not documented]\n\n",
            "subsections": []
        },
        "Class methods:": {
            "content": "build\nparse\n",
            "subsections": []
        },
        "Instance methods:": {
            "content": "%\n*\n+\n-\n/\n<=>\n==\nafter\nago\nbefore\neql?\nfromnow\nhash\nindays\ninhours\ninminutes\ninmonths\ninseconds\ninweeks\ninyears\niso8601\nparts\nsince\ntoi\ntos\nuntil\nvalue\n",
            "subsections": []
        },
        "Attributes:": {
            "content": "attraccessor parts\nattraccessor value\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}