Class: When::TimeStandard::LocalMeanTime

Inherits:
TimeStandard show all
Defined in:
lib/when_exe/timestandard.rb

Overview

地方平均太陽時

Constant Summary

Constants inherited from TimeStandard

TimeStandard::Ratio

Constants included from When::TimeStandard

DeltaT, DeltaT0, DeltaThreshold, TAI_UTC, YearThreshold

Constants included from Parts::Resource

Parts::Resource::LabelProperty

Instance Attribute Summary

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

#_pool, #child, #keys, #locale, #namespace

Instance Method Summary collapse

Methods inherited from TimeStandard

#from_dynamical_date, #from_time_object, #has_leap?, #rate_of_clock, #to_dynamical_date, #to_time_object

Methods included from When::TimeStandard

_is_systemtime_universal?, _leap_seconds, _setup_, delta_t, delta_t_coordinated, delta_t_observed, delta_t_observed_nasa, delta_t_observed_poly, from_dynamical_time, from_time_object, to_dynamical_time, to_time_object

Methods included from Parts::Resource

#[], #^, _decode, _encode, _extract_prefix, _instance, _parse, _path_with_prefix, _replace_tags, _setup_, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #next, #parent, #prev, #registered?

Methods included from Parts::Resource::Pool

#[], #[]=, #_pool, #_setup_, #pool_keys

Methods included from Parts::Resource::Synchronize

#synchronize

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class When::Parts::Resource

Instance Method Details

#from_dynamical_time(time) ⇒ Numeric

dynamical time を local mean time に変換する



537
538
539
# File 'lib/when_exe/timestandard.rb', line 537

def from_dynamical_time(time)
  super(time) + When::TM::Duration::DAY * @location.long  / (360.0 * When::Coordinates::Spatial::DEGREE)
end

#to_dynamical_time(time) ⇒ Numeric

local mean time を dynamical time に変換する



527
528
529
# File 'lib/when_exe/timestandard.rb', line 527

def to_dynamical_time(time)
  super(time - When::TM::Duration::DAY * @location.long / (360.0 * When::Coordinates::Spatial::DEGREE))
end