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:



406
407
408
# File 'lib/when_exe/timestandard.rb', line 406

def localdate_difference
  @localdate_difference ||= @location.long  / (360.0 * When::Coordinates::Spatial::DEGREE)
end

#localtime_differenceNumeric

local time と universal time の差 / 128秒

Returns:



414
415
416
# File 'lib/when_exe/timestandard.rb', line 414

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