Method: When::TimeStandard::LocalApparentTime#to_dynamical_time

Defined in:
lib/when_exe/timestandard.rb

#to_dynamical_time(time) ⇒ Numeric

local apparent time を dynamical time に変換する

Parameters:

  • time (Numeric)

    local apparent time

Returns:



602
603
604
605
606
607
608
609
# File 'lib/when_exe/timestandard.rb', line 602

def to_dynamical_time(time)
  date   = When::TM::JulianDate._t_to_d(time) - localdate_difference
  diff   = 0
  2.times do
    diff = @datum.equation_of_time(date-diff)
  end
  super(When::TM::JulianDate._d_to_t(date-diff))
end