Class: When::CalendarTypes::UTC

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

Overview

Universal Time, Coordinated

Direct Known Subclasses

LocalTime, MTC

Constant Summary

Constants inherited from TM::Clock

TM::Clock::HashProperty

Constants included from When::Coordinates

When::Coordinates::Bahai, When::Coordinates::Chinese, When::Coordinates::Common, When::Coordinates::DefaultDateIndices, When::Coordinates::DefaultDayIndex, When::Coordinates::DefaultTimeIndices, When::Coordinates::Indian, When::Coordinates::Iranian, 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::Russian, When::Coordinates::Tibetan, When::Coordinates::VALUE, When::Coordinates::Yi

Constants included from Parts::Resource

Parts::Resource::ConstList, Parts::Resource::ConstTypes, Parts::Resource::IRIDecode, Parts::Resource::IRIDecodeTable, Parts::Resource::IRIEncode, Parts::Resource::IRIEncodeTable, Parts::Resource::IRIHeader, Parts::Resource::LabelProperty

Instance Attribute Summary

Attributes inherited from TM::Clock

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

Attributes included from Parts::Timezone::Base

#daylight, #standard, #tz_difference

Attributes inherited from TM::ReferenceSystem

#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, _local_time, #_need_validate, #_number_to_coordinates, #_precision, #_round_value, _setup_, _setup_info, #_to_hash_value, #daylight, get_clock, get_clock_option, is_local_time_set?, local_time, local_time=, #location, #rate_of_clock, #standard, #to_basic, #to_clk_time, to_hms, #to_universal_time, #tz_difference, #tzname, #universal_time

Methods included from Parts::Resource::Pool

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

Methods included from Parts::Resource::Synchronize

#synchronize

Methods included from Parts::Timezone::Base

#^

Methods included from When::Coordinates

to_deg, to_deg_225, to_dms

Methods inherited from TM::ReferenceSystem

#domain, #name

Methods included from Parts::Resource

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

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