Module: When::TimeStandard::LocalTime

Included in:
LocalApparentTime, LocalMeanTime
Defined in:
lib/when_exe/timestandard.rb

Overview

Local Time と Universal Time の差分

Instance Method Summary collapse

Instance Method Details

#localdate_differenceNumeric

local time と universal time の差 / 日

Returns:



408
409
410
# File 'lib/when_exe/timestandard.rb', line 408

def localdate_difference
  @localdate_difference ||= @location.long  / (360.0 * @location.degree)
end

#localtime_differenceNumeric

local time と universal time の差 / 128秒

Returns:



416
417
418
# File 'lib/when_exe/timestandard.rb', line 416

def localtime_difference
  @localtime_difference ||= When::TM::Duration::DAY * localdate_difference
end