Class: When::CalendarTypes::UTC

Inherits:
TM::Clock show all
Defined in:
lib/when_exe/calendartypes.rb

Overview

Universal Time, Coordinated

Direct Known Subclasses

LAT, LMT, MTC, THS

Constant Summary

Constants included from When::Coordinates

When::Coordinates::Bahai, When::Coordinates::CommonResidue, When::Coordinates::DefaultDateIndex, When::Coordinates::DefaultTimeIndex, When::Coordinates::IndianCities, When::Coordinates::Javanese, When::Coordinates::MATCH, When::Coordinates::Mayan, When::Coordinates::PERIOD, When::Coordinates::PERIOD_NAME, When::Coordinates::PRECISION, When::Coordinates::PRECISION_NAME, When::Coordinates::VALUE, When::Coordinates::Yi

Constants included from Parts::Resource

Parts::Resource::LabelProperty, Parts::Resource::Prefix, Parts::Resource::PrefixIndex, Parts::Resource::PrefixKeys, Parts::Resource::PrefixValues

Instance Attribute Summary

Attributes inherited from TM::Clock

#date_basis, #reference_event, #reference_time, #second, #time_standard, #tz_prop, #utc_reference

Attributes inherited from TM::ReferenceSystem

#domain, #domain_of_validity, #position

Attributes inherited from BasicTypes::Object

#label

Attributes included from Parts::Resource

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

Instance Method Summary collapse

Methods inherited from TM::Clock

#^, #_arrange_length, #_coordinates_to_number, #_daylight, #_need_validate, #_number_to_coordinates, #_precision, _setup_, #_to_hash_value, #_tz_difference, get_clock, get_clock_option, #rate_of_clock, #to_basic, #to_clk_time, to_hms, #to_universal_time, #tzname, #universal_time

Methods included from Parts::Resource::Pool

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

Methods included from Parts::Resource::Synchronize

#synchronize

Methods included from When::Coordinates

to_deg, to_dms

Methods inherited from TM::ReferenceSystem

#name

Methods inherited from BasicTypes::Object

#tap

Methods included from Parts::Resource

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

Dynamic Method Handling

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

Instance Method Details

#clk_trans(clk_time) ⇒ When::TM::ClockTime Also known as: clkTrans

UTC時刻をこの時法の時刻に変換する

Description of an operation for converting a UTC time to a time on this clock

Parameters:

Returns:



41
42
43
# File 'lib/when_exe/calendartypes.rb', line 41

def clk_trans(clk_time)
  return clk_time
end

#utc_trans(u_time) ⇒ When::TM::ClockTime Also known as: utcTrans

この時法の時刻をUTC時刻に変換する

Description of an operation for converting a time on this clock to a UTC time

Parameters:

Returns:



28
29
30
# File 'lib/when_exe/calendartypes.rb', line 28

def utc_trans(u_time)
  return u_time
end

#zoneString

Zone 名

Returns:



51
52
53
# File 'lib/when_exe/calendartypes.rb', line 51

def zone
  @label.to_s
end