class MkCalJpl::Calendar

Attributes

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

Public Class Methods

new(bin_path, jst) click to toggle source
# File lib/mk_cal_jpl/calendar.rb, line 9
def initialize(bin_path, jst)
  @bin_path = bin_path
  @year, @month, @day = jst
  @jd = gc2jd(@year, @month, @day)
  @jd_jst = @jd + Const::JST_D
  @sekki24_tms = Const::SEKKI_24_TM.each_slice(7).to_a
  @saku_tms    = Const::SAKU_TM.each_slice(6).to_a
end

Public Instance Methods

alpha() click to toggle source
視黄経(月)
# File lib/mk_cal_jpl/calendar.rb, line 77
def alpha
  return compute_alpha(@jd_jst)
end
holiday() click to toggle source
休日
# File lib/mk_cal_jpl/calendar.rb, line 28
def holiday
  return compute_holiday(@year, @month, @day)
end
holidays() click to toggle source
年間休日一覧
# File lib/mk_cal_jpl/calendar.rb, line 21
def holidays
  return get_holidays(@year)
end
kanshi() click to toggle source
干支
# File lib/mk_cal_jpl/calendar.rb, line 56
def kanshi
  return compute_kanshi(@jd_jst)
end
lambda() click to toggle source
視黄経(太陽)
# File lib/mk_cal_jpl/calendar.rb, line 70
def lambda
  return compute_lambda(@jd_jst)
end
moonage() click to toggle source
月齢(正午)
# File lib/mk_cal_jpl/calendar.rb, line 84
def moonage
  return compute_moonage(@jd_jst)
end
oc() click to toggle source
旧暦
# File lib/mk_cal_jpl/calendar.rb, line 91
def oc
  return compute_oc(@jd_jst)
end
sekki_24() click to toggle source
二十四節気
# File lib/mk_cal_jpl/calendar.rb, line 35
def sekki_24
  return compute_sekki_24(@jd_jst)
end
sekku() click to toggle source
節句
# File lib/mk_cal_jpl/calendar.rb, line 63
def sekku
  return compute_sekku(@month, @day)
end
yobi() click to toggle source
曜日
# File lib/mk_cal_jpl/calendar.rb, line 49
def yobi
  return compute_yobi(@jd_jst)
end
zassetsu() click to toggle source
雑節
# File lib/mk_cal_jpl/calendar.rb, line 42
def zassetsu
  return compute_zassetsu(@jd_jst)
end