Method: Period.chunk_sym_to_max_days

Defined in:
lib/fat_core/period.rb

.chunk_sym_to_max_days(sym) ⇒ Object

The largest number of days possible in each chunk


127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/fat_core/period.rb', line 127

def self.chunk_sym_to_max_days(sym)
  case sym
  when :semimonth
    16
  when :month
    31
  when :bimonth
    62
  when :quarter
    92
  when :year
    366
  else
    chunk_sym_to_days(sym)
  end
end