method

quarter

Importance_1
v8.0.0 - Show latest stable - 0 notes - Class: Calculations
quarter() public

Returns the quarter for a date/time.

Date.new(2010, 1, 31).quarter  # => 1
Date.new(2010, 4, 12).quarter  # => 2
Date.new(2010, 9, 15).quarter  # => 3
Date.new(2010, 12, 25).quarter # => 4
Show source
Register or log in to add new notes.