class MkCalendar::Calendar

Attributes

day[R]
jd[R]
jd_jst[R]
month[R]
year[R]

Public Class Methods

new(ymd) click to toggle source
# File lib/mk_calendar/calendar.rb, line 9
def initialize(ymd)
  @year, @month, @day = ymd
  @jd = gc2jd(@year, @month, @day)
  @jd_jst = @jd + Const::JST_D
end

Public Instance Methods

alpha() click to toggle source
視黄経(月)
# File lib/mk_calendar/calendar.rb, line 67
def alpha
  return compute_alpha(@jd_jst)
end
holiday() click to toggle source
休日
# File lib/mk_calendar/calendar.rb, line 18
def holiday
  return compute_holiday(@year, @month, @day)
end
kanshi() click to toggle source
干支
# File lib/mk_calendar/calendar.rb, line 46
def kanshi
  return compute_kanshi(@jd_jst)
end
lambda() click to toggle source
視黄経(太陽)
# File lib/mk_calendar/calendar.rb, line 60
def lambda
  return compute_lambda(@jd_jst)
end
moonage() click to toggle source
月齢(正午)
# File lib/mk_calendar/calendar.rb, line 74
def moonage
  return compute_moonage(@jd_jst)
end
oc() click to toggle source
旧暦
# File lib/mk_calendar/calendar.rb, line 81
def oc
  return compute_oc(@jd_jst)
end
sekki_24() click to toggle source
二十四節気
# File lib/mk_calendar/calendar.rb, line 25
def sekki_24
  return compute_sekki_24(@jd_jst)
end
sekku() click to toggle source
節句
# File lib/mk_calendar/calendar.rb, line 53
def sekku
  return compute_sekku(@month, @day)
end
yobi() click to toggle source
曜日
# File lib/mk_calendar/calendar.rb, line 39
def yobi
  return compute_yobi(@jd_jst)
end
zassetsu() click to toggle source
雑節
# File lib/mk_calendar/calendar.rb, line 32
def zassetsu
  return compute_zassetsu(@jd_jst)
end