Sha256: f8f948caefdcc1ada0c73cf35d4c2fd1f01d66b296d83d2ac088360f8e79c415

Contents?: true

Size: 766 Bytes

Versions: 9

Compression:

Stored size: 766 Bytes

Contents

# frozen_string_literal: true

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

# :nodoc:
module Zakuro
  # :nodoc:
  module Senmyou
    # :nodoc:
    module Origin
      #
      # AverageNovember 11月経
      #
      module AverageNovember
        #
        # 11月経朔(冬至が含まれる月の1日)を求める
        #
        # @param [Integer] western_year 西暦年
        #
        # @return [Remainder] 11月経朔
        #
        def self.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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
zakuro-0.7.2 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.7.0 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.6.1 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.6.0 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.5.0 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.4.0 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.3.0 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.2.0 lib/zakuro/version/senmyou/stella/origin/average_november.rb
zakuro-0.1.5 lib/zakuro/version/senmyou/stella/origin/average_november.rb