Class: When::TimeStandard::UniversalTime
- Inherits:
-
TimeStandard
- Object
- BasicTypes::Object
- TimeStandard
- When::TimeStandard::UniversalTime
- Defined in:
- lib/when_exe/timestandard.rb,
lib/when_exe/timestandard-canopus.rb
Overview
協定世界時
Constant Summary
Constants inherited from TimeStandard
Constants included from When::TimeStandard
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
Attributes included from Parts::Resource
#child, #keys, #locale, #namespace
Instance Method Summary collapse
-
#from_time_object(time) ⇒ Numeric
Time オブジェクトを universal time に変換する.
-
#has_leap? ⇒ Boolean
当該時刻系に閏秒があるか?.
-
#to_time_object(time) ⇒ ::Time
universal time を Time オブジェクトに変換する.
Methods inherited from TimeStandard
#from_dynamical_date, #from_dynamical_time, #rate_of_clock, #to_dynamical_date, #to_dynamical_time
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
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class When::Parts::Resource
Instance Method Details
#from_time_object(time) ⇒ Numeric
Time オブジェクトを universal time に変換する
527 528 529 530 531 |
# File 'lib/when_exe/timestandard.rb', line 527 def from_time_object(time) result = time.to_f * When::TM::Duration::SECOND return result if When::TimeStandard._is_systemtime_universal? from_dynamical_time(result + DeltaT0) end |
#has_leap? ⇒ Boolean
当該時刻系に閏秒があるか?
548 549 550 |
# File 'lib/when_exe/timestandard.rb', line 548 def has_leap? true end |