Sha256: 1bf3424d098671b723a97a1ef3286eb53374c3f0e67d32e309a3cddceeed4084

Contents?: true

Size: 1.34 KB

Versions: 14

Compression:

Stored size: 1.34 KB

Contents

# frozen_string_literal: true

# :nodoc:
module Zakuro
  # :nodoc:
  module Gihou
    #
    # Const 定数
    #
    module Const
      #
      # Number 数値
      #
      module Number
        #
        # Cycle 周期
        #
        module Cycle
          # @return [Integer] 総法(1日=1340分)
          DAY = 1340
          #
          # @return [Float] 変日(1近点月 = 27日743分1秒(1分=12秒))
          # @note 小数点以下の値によって大幅に結果が変わる。除算結果を設定した
          #
          # ANOMALISTIC_MONTH = 36_923.083333333333
          ANOMALISTIC_MONTH = 36_923 + (1.0 / 12)
          # @return [Integer] 朔望月
          SYNODIC_MONTH = 39_571
          # @return [Integer] 一年
          YEAR = 489_428
        end

        #
        # Derivation 導出
        #
        module Derivation
          # @return [Integer] 通余:  (YEAR - DAY * 12 * 30)
          REMAINDER_ALL_YEAR = 7028
          # @return [Integer] 旬周(60日) DAY * 60
          SIXTY_DAYS = 80_400
        end

        #
        # 累積
        #
        module Stack
          # @return [Integer] 積年(甲子夜半朔旦冬至〜暦の開始前)
          TOTAL_YEAR = 269_880
          # @return [Integer] 暦の開始年(麟徳元年)
          BEGIN_YEAR = 664
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
zakuro-0.9.4 lib/zakuro/version/gihou/const/number.rb
zakuro-0.9.3 lib/zakuro/version/gihou/const/number.rb
zakuro-0.9.2 lib/zakuro/version/gihou/const/number.rb
zakuro-0.9.1 lib/zakuro/version/gihou/const/number.rb
zakuro-0.9.0 lib/zakuro/version/gihou/const/number.rb
zakuro-0.8.0 lib/zakuro/version/gihou/const/number.rb
zakuro-0.7.2 lib/zakuro/version/gihou/const/number.rb
zakuro-0.7.0 lib/zakuro/version/gihou/const/number.rb
zakuro-0.6.1 lib/zakuro/version/gihou/const/number.rb
zakuro-0.6.0 lib/zakuro/version/gihou/const/number.rb
zakuro-0.5.0 lib/zakuro/version/gihou/const/number.rb
zakuro-0.4.0 lib/zakuro/version/gihou/const/number.rb
zakuro-0.3.0 lib/zakuro/version/gihou/const/number.rb
zakuro-0.2.0 lib/zakuro/version/gihou/const/number.rb