method

months

v7.1.3.4 - Show latest stable - Class: Integer
months()
public

Returns a Duration instance matching the number of months provided.

2.months # => 2 months