Module: TimeCrisis::MeteorologicalSeasons::ClassMethods

Included in:
Date
Defined in:
lib/time_crisis/meteorological_seasons.rb

Instance Method Summary collapse

Instance Method Details

#beginning_of_meteorological_autumn(year = current.year) ⇒ Object Also known as: beginning_of_meteorological_fall



23
24
25
# File 'lib/time_crisis/meteorological_seasons.rb', line 23

def beginning_of_meteorological_autumn(year=current.year)
  TimeCrisis::Date.civil(year, 9, 1)
end

#beginning_of_meteorological_spring(year = current.year) ⇒ Object



15
16
17
# File 'lib/time_crisis/meteorological_seasons.rb', line 15

def beginning_of_meteorological_spring(year=current.year)
  TimeCrisis::Date.civil(year, 3, 1)
end

#beginning_of_meteorological_summer(year = current.year) ⇒ Object



19
20
21
# File 'lib/time_crisis/meteorological_seasons.rb', line 19

def beginning_of_meteorological_summer(year=current.year)
  TimeCrisis::Date.civil(year, 6, 1)
end

#beginning_of_meteorological_winter(year = current.year) ⇒ Object



29
30
31
# File 'lib/time_crisis/meteorological_seasons.rb', line 29

def beginning_of_meteorological_winter(year=current.year)
  TimeCrisis::Date.civil(year, 12, 1)
end