Module: When::Parts::Timezone::Base
- Included in:
- When::Parts::Timezone, TM::Clock, V::Timezone
- Defined in:
- lib/when_exe/parts/timezone.rb
Overview
When::V::Timezone と Qhwn::Parts::Timezone の抽象基底
Instance Attribute Summary collapse
-
#daylight ⇒ When::TM::Clock
readonly
夏時間帯の時計.
-
#standard ⇒ When::TM::Clock
readonly
標準時間帯の時計.
-
#tz_difference ⇒ When::TM:IntervalLength
readonly
夏時間帯と標準時間帯の時間差.
Instance Method Summary collapse
-
#^(date, options = {}) ⇒ When::TM::DateAndTime, When::TM::JulianDate
When::TM::TemporalPosition の時間帯を変更して複製する.
Instance Attribute Details
#daylight ⇒ When::TM::Clock (readonly)
夏時間帯の時計
28 29 30 |
# File 'lib/when_exe/parts/timezone.rb', line 28 def daylight @daylight end |
#standard ⇒ When::TM::Clock (readonly)
標準時間帯の時計
24 25 26 |
# File 'lib/when_exe/parts/timezone.rb', line 24 def standard @standard end |
#tz_difference ⇒ When::TM:IntervalLength (readonly)
夏時間帯と標準時間帯の時間差
32 33 34 |
# File 'lib/when_exe/parts/timezone.rb', line 32 def tz_difference @tz_difference end |
Instance Method Details
#^(date, options = {}) ⇒ When::TM::DateAndTime, When::TM::JulianDate
When::TM::TemporalPosition の時間帯を変更して複製する
41 42 43 44 45 46 |
# File 'lib/when_exe/parts/timezone.rb', line 41 def ^(date, ={}) date = When::TM::Position.any_other(date, ) = date._attr.merge({:clock=>self}).merge() return When::TM::JulianDate.dynamical_time(date.dynamical_time, ) unless date.frame.kind_of?(When::TM::Calendar) date.frame.jul_trans(When::TM::JulianDate.dynamical_time(date.dynamical_time), ) end |