Module: When::Ephemeris::ChineseTrueLunation::JujiMethods
Overview
元明代のアルゴリズム
Defined Under Namespace
Instance Method Summary collapse
-
#_perihelion_(year) ⇒ Object
暦元天正冬至から当該年の近日点通過までの日数.
-
#_winter_solstice_(year) ⇒ Object
暦元天正冬至から当該年の天正冬至までの日数.
-
#_year_length_(year) ⇒ Object
歳周(当該年の日数).
Instance Method Details
#_perihelion_(year) ⇒ Object
暦元天正冬至から当該年の近日点通過までの日数
473 474 475 |
# File 'lib/when_exe/region/chinese.rb', line 473 def _perihelion_(year) _winter_solstice(year) + @anomalistic_year_shift end |
#_winter_solstice_(year) ⇒ Object
暦元天正冬至から当該年の天正冬至までの日数
468 469 470 |
# File 'lib/when_exe/region/chinese.rb', line 468 def _winter_solstice_(year) year * (@year_length - @year_delta * _shift_s(year)) end |
#_year_length_(year) ⇒ Object
歳周(当該年の日数)
478 479 480 |
# File 'lib/when_exe/region/chinese.rb', line 478 def _year_length_(year) @year_length - 2 * @year_delta * _shift_l(year) end |