Sha256: fa5c9192b27e6465af1df3bb597aed6bdd2739e48251cba6c036ba715071be14

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 Daien
    # :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/daien/stella/origin/average_november.rb
zakuro-0.9.3 lib/zakuro/version/daien/stella/origin/average_november.rb
zakuro-0.9.2 lib/zakuro/version/daien/stella/origin/average_november.rb
zakuro-0.9.1 lib/zakuro/version/daien/stella/origin/average_november.rb
zakuro-0.9.0 lib/zakuro/version/daien/stella/origin/average_november.rb
zakuro-0.8.0 lib/zakuro/version/daien/stella/origin/average_november.rb