Sha256: 03994ca8c3e310bb60339decac464866391d90196224993f23b841359186bde7

Contents?: true

Size: 821 Bytes

Versions: 6

Compression:

Stored size: 821 Bytes

Contents

# frozen_string_literal: true

require_relative './lunar_age'
require_relative './winter_solstice'

# :nodoc:
module Zakuro
  # :nodoc:
  module Gihou
    # :nodoc:
    module Origin
      #
      # AverageNovember 11月経
      #
      module AverageNovember
        class << self
          #
          # 11月経朔(冬至が含まれる月の1日)を求める
          #
          # @param [Integer] western_year 西暦年
          #
          # @return [Remainder] 11月経朔
          #
          def get(western_year:)
            # 冬至
            winter_solstice = WinterSolstice.get(western_year: western_year)
            # 天正閏余
            lunar_age = LunarAge.get(western_year: western_year)

            winter_solstice.sub(lunar_age)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zakuro-0.9.4 lib/zakuro/version/gihou/stella/origin/average_november.rb
zakuro-0.9.3 lib/zakuro/version/gihou/stella/origin/average_november.rb
zakuro-0.9.2 lib/zakuro/version/gihou/stella/origin/average_november.rb
zakuro-0.9.1 lib/zakuro/version/gihou/stella/origin/average_november.rb
zakuro-0.9.0 lib/zakuro/version/gihou/stella/origin/average_november.rb
zakuro-0.8.0 lib/zakuro/version/gihou/stella/origin/average_november.rb