Module: When::Ephemeris::ChineseTrueLunation::JujiMethods

Included in:
MethodJ, MethodS
Defined in:
lib/when_exe/region/chinese.rb

Overview

元明代のアルゴリズム

Defined Under Namespace

Modules: C, D, Y

Instance Method Summary collapse

Instance Method Details

#_perihelion_(year) ⇒ Object

暦元天正冬至から当該年の近日点通過までの日数



484
485
486
487
488
# File 'lib/when_exe/region/chinese.rb', line 484

def _perihelion_(year)
  date = _winter_solstice_(year)
  return date unless @anomalistic_year_shift
  date + year * @precession + @anomalistic_year_shift
end

#_winter_solstice_(year) ⇒ Object

暦元天正冬至から当該年の天正冬至までの日数



479
480
481
# File 'lib/when_exe/region/chinese.rb', line 479

def _winter_solstice_(year)
  year * (@year_length - @year_delta  * _shift_s(year))
end

#_year_length_(year) ⇒ Object

歳周(当該年の日数)



491
492
493
# File 'lib/when_exe/region/chinese.rb', line 491

def _year_length_(year)
  @year_length - 2 * @year_delta * _shift_l(year)
end