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:



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

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

#localtime_differenceNumeric

local time と universal time の差 / 128秒

Returns:



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

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