Class: When::CalendarNote::DarianWeek
- Inherits:
-
WorldWeek
- Object
- BasicTypes::Object
- TM::Object
- TM::ReferenceSystem
- When::CalendarNote
- WorldWeek
- When::CalendarNote::DarianWeek
- Defined in:
- lib/when_exe/region/martian.rb
Overview
Darian Week
Constant Summary collapse
- NoteObjects =
[When::BasicTypes::M17n, [ "namespace:[en=http://en.wikipedia.org/wiki/, ja=http://ja.wikipedia.org/wiki/]", "locale:[=en:, ja=ja:, alias]", "names:[Darian]", # 年の暦注 ---------------------------- [When::BasicTypes::M17n, "names:[year]" ], # 月の暦注 ---------------------------- [When::BasicTypes::M17n, "names:[month]", [When::BasicTypes::M17n, "names:[Month]" ] ], # 日の暦注 ---------------------------- [When::BasicTypes::M17n, "names:[day]", [When::BasicTypes::M17n, "names:[Week]", "[Solis, 日曜日]", "[Lunae, 月曜日]", "[Martis, 火曜日]", "[Mercurii, 水曜日]", "[Jovis, 木曜日]", "[Veneris, 金曜日]", "[Saturni, 土曜日]" ] ] ]]
Constants inherited from When::CalendarNote
BahaiNotes, ChineseNotes, DefaultNotes, JavaneseNotes, JulianDayNotes, MayanNotes, TibetanNotes, YiNotes
Constants included from Parts::Resource
Parts::Resource::LabelProperty
Instance Attribute Summary
Attributes inherited from When::CalendarNote
Attributes inherited from TM::ReferenceSystem
#domain_of_validity, #position
Attributes inherited from BasicTypes::Object
Attributes included from Parts::Resource
#_pool, #child, #keys, #locale, #namespace
Instance Method Summary collapse
-
#solis(date, parameter = nil) ⇒ When::TM::TemporalPosition
(also: #week)
当日または直前の solis の日.
Methods inherited from WorldWeek
#_delta, #week_day, #worldsday, #worldsday_delta
Methods inherited from When::CalendarNote
#copy, #day, #duration, #enum_for, #include?, #month, #note?, #notes, #year
Methods inherited from TM::ReferenceSystem
Methods included from Parts::Resource
#[], #^, _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
Methods included from Parts::Resource::Pool
#[], #[]=, #_pool, #_setup_, #pool_keys
Methods included from Parts::Resource::Synchronize
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class When::Parts::Resource
Instance Method Details
#solis(date, parameter = nil) ⇒ When::TM::TemporalPosition Also known as: week
当日または直前の solis の日
163 164 165 166 167 168 169 170 171 |
# File 'lib/when_exe/region/martian.rb', line 163 def solis(date, parameter=nil) date = When.Calendar('Darian').jul_trans(date, {:events=>['from_solis']}) y,m,d = date.cal_date dow = (d-1) % 7 return date if dow == 0 date += When::TM::PeriodDuration.new([0,0,-dow]) date.events = ['from_solis'] date end |