Class: When::TimeStandard::LocalMeanTime

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

Overview

地方平均太陽時

Constant Summary

Constants inherited from TimeStandard

TimeStandard::Ratio

Constants included from When::TimeStandard

DeltaT, DeltaT0, TAI_UTC

Constants included from Namespace

Namespace::DC, Namespace::DCQ, Namespace::DCT, Namespace::FOAF, Namespace::OWL, Namespace::RDF, Namespace::RDFC, Namespace::RDFS, Namespace::RSS, Namespace::XSD

Instance Attribute Summary

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

#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

_setup_, _setup_info, 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

#[], #^, _instance, _setup_, _setup_info, base_uri, #each, #enum_for, #hierarchy, #include?, #included?, #iri, #leaf?, #m17n, #map, #parent, #registered?, root_dir

Methods included from Parts::Resource::Pool

#[], #[]=, #_setup_

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 に変換する

Parameters:

  • time (Numeric)

    dynamical time

Returns:



576
577
578
# File 'lib/when_exe/timestandard.rb', line 576

def from_dynamical_time(time)
  super(time) + localtime_difference
end

#to_dynamical_time(time) ⇒ Numeric

local mean time を dynamical time に変換する

Parameters:

  • time (Numeric)

    local mean time

Returns:



566
567
568
# File 'lib/when_exe/timestandard.rb', line 566

def to_dynamical_time(time)
  super(time - localtime_difference)
end