Module: LunarCalendar

Defined in:
lib/lunar_calendar.rb,
lib/lunar_calendar/date.rb,
lib/lunar_calendar/lunar.rb,
lib/lunar_calendar/solar.rb,
lib/lunar_calendar/utils.rb,
lib/lunar_calendar/version.rb,
lib/lunar_calendar/lunar_year.rb,
lib/lunar_calendar/data/new_years.rb,
lib/lunar_calendar/calculator/lunar.rb,
lib/lunar_calendar/data/leap_months.rb

Overview

The Lunar Calendar Calculator

Defined Under Namespace

Modules: Calculator, Data, Utils Classes: Date, Lunar, LunarYear, Solar

Constant Summary collapse

SUPPORT_YEARS =

Since:

  • 0.1.0

(1888..2100).freeze
VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.at_lunar(year, month, day) ⇒ LunarCalendar::Solar

Convert Solar to Lunar

Parameters:

  • year (Number)

    year

  • month (Number)

    month

  • day (Number)

    day

Returns:

Since:

  • 0.1.0



21
22
23
# File 'lib/lunar_calendar.rb', line 21

def self.at_lunar(year, month, day)
  Solar.new(year, month, day).to_lunar
end