method

months

v6.1.7.7 - Show latest stable - Class: Integer
months()
public

Returns a Duration instance matching the number of months provided.

2.months # => 2 months