zakuro 0.0.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.editorconfig +4 -0
  3. data/.gitignore +7 -1
  4. data/.rubocop.yml +3 -0
  5. data/Gemfile +2 -0
  6. data/Makefile +2 -0
  7. data/README.md +156 -10
  8. data/Rakefile +1 -1
  9. data/doc/gengou.md +315 -0
  10. data/doc/operation.md +25 -0
  11. data/doc/operation/csv/month.csv +202 -0
  12. data/doc/operation/operation.xlsx +0 -0
  13. data/doc/operation/transfer.rb +77 -0
  14. data/lib/zakuro/condition.rb +19 -15
  15. data/lib/zakuro/cycle/abstract_remainder.rb +3 -4
  16. data/lib/zakuro/era/japan/gengou.rb +106 -0
  17. data/lib/zakuro/era/japan/gengou/parser.rb +167 -0
  18. data/lib/zakuro/era/japan/gengou/type.rb +178 -0
  19. data/lib/zakuro/era/japan/gengou/validator.rb +236 -0
  20. data/lib/zakuro/era/japan/reki.rb +91 -0
  21. data/lib/zakuro/era/japan/yaml/set-001-until-south.yaml +1121 -0
  22. data/lib/zakuro/era/japan/yaml/set-002-from-north.yaml +485 -0
  23. data/lib/zakuro/era/japan/yaml/set-003-modern.yaml +28 -0
  24. data/lib/zakuro/era/western.rb +11 -1
  25. data/lib/zakuro/merchant.rb +3 -1
  26. data/lib/zakuro/operation/month/parser.rb +373 -0
  27. data/lib/zakuro/operation/month/type.rb +458 -0
  28. data/lib/zakuro/operation/month/validator.rb +802 -0
  29. data/lib/zakuro/operation/operation.rb +66 -0
  30. data/lib/zakuro/operation/yaml/month.yaml +6452 -0
  31. data/lib/zakuro/output/error.rb +2 -0
  32. data/lib/zakuro/output/logger.rb +2 -0
  33. data/lib/zakuro/output/response.rb +21 -19
  34. data/lib/zakuro/result/core.rb +52 -0
  35. data/lib/zakuro/result/data.rb +187 -0
  36. data/lib/zakuro/result/operation.rb +114 -0
  37. data/lib/zakuro/result/result.rb +37 -0
  38. data/lib/zakuro/{output → tools}/stringifier.rb +16 -9
  39. data/lib/zakuro/tools/typeof.rb +33 -0
  40. data/lib/zakuro/version.rb +1 -1
  41. data/lib/zakuro/version/senmyou/README.md +3 -1
  42. data/lib/zakuro/version/senmyou/base/era.rb +3 -1
  43. data/lib/zakuro/version/senmyou/base/multi_gengou.rb +98 -0
  44. data/lib/zakuro/version/senmyou/base/multi_gengou_roller.rb +217 -0
  45. data/lib/zakuro/version/senmyou/base/remainder.rb +4 -4
  46. data/lib/zakuro/version/senmyou/base/solar_term.rb +20 -0
  47. data/lib/zakuro/version/senmyou/base/year.rb +52 -6
  48. data/lib/zakuro/version/senmyou/monthly/first_day.rb +44 -0
  49. data/lib/zakuro/version/senmyou/monthly/initialized_month.rb +48 -0
  50. data/lib/zakuro/version/senmyou/monthly/lunar_phase.rb +1 -1
  51. data/lib/zakuro/version/senmyou/monthly/month.rb +136 -67
  52. data/lib/zakuro/version/senmyou/monthly/month_label.rb +87 -0
  53. data/lib/zakuro/version/senmyou/monthly/operated_month.rb +167 -0
  54. data/lib/zakuro/version/senmyou/{summary/annual_data.rb → range/annual_range.rb} +38 -40
  55. data/lib/zakuro/version/senmyou/range/full_range.rb +324 -0
  56. data/lib/zakuro/version/senmyou/range/operated_range.rb +126 -0
  57. data/lib/zakuro/version/senmyou/range/operated_solar_terms.rb +181 -0
  58. data/lib/zakuro/version/senmyou/senmyou.rb +2 -2
  59. data/lib/zakuro/version/senmyou/specifier/single_day_specifier.rb +102 -0
  60. data/lib/zakuro/version/senmyou/stella/lunar_orbit.rb +1 -1
  61. data/lib/zakuro/version/senmyou/stella/solar_average.rb +54 -32
  62. data/lib/zakuro/version/senmyou/stella/solar_orbit.rb +3 -7
  63. data/lib/zakuro/version/senmyou/summary/single.rb +125 -0
  64. data/lib/zakuro/version_factory.rb +1 -1
  65. metadata +40 -13
  66. data/.travis.yml +0 -6
  67. data/lib/zakuro/era/gengou/set-001-until-south.yaml +0 -375
  68. data/lib/zakuro/era/gengou/set-002-from-north.yaml +0 -166
  69. data/lib/zakuro/era/gengou/set-003-modern.yaml +0 -12
  70. data/lib/zakuro/era/japan.rb +0 -630
  71. data/lib/zakuro/output/result.rb +0 -219
  72. data/lib/zakuro/version/senmyou/base/gengou.rb +0 -210
  73. data/lib/zakuro/version/senmyou/summary/gengou_data.rb +0 -294
@@ -302,10 +302,8 @@ module Zakuro
302
302
  per_day = adjustment.per_day
303
303
  sign, ratio = calc_ratio(day: remainder.day, per_term: per_term, per_day: per_day)
304
304
 
305
- day_stack = calc_day_stack_from_ratio(sign: sign, ratio: ratio,
306
- minute: remainder.minute)
307
-
308
- day_stack
305
+ calc_day_stack_from_ratio(sign: sign, ratio: ratio,
306
+ minute: remainder.minute)
309
307
  end
310
308
  private_class_method :calc_day_stack
311
309
 
@@ -388,9 +386,7 @@ module Zakuro
388
386
  month_stack = stack + day * per_term + \
389
387
  (1 / 2.0) * (day * (day - 1) * per_day)
390
388
  # 切り捨て(プラスマイナスに関わらず小数点以下切り捨て)
391
- month_stack = month_stack.negative? ? month_stack.ceil : month_stack.floor
392
-
393
- month_stack
389
+ month_stack.negative? ? month_stack.ceil : month_stack.floor
394
390
  end
395
391
  private_class_method :calc_month_stack
396
392
  end
@@ -0,0 +1,125 @@
1
+ # frozen_string_literal: true
2
+
3
+ require File.expand_path('../../../../../' \
4
+ 'lib/zakuro/version/senmyou/specifier/single_day_specifier',
5
+ __dir__)
6
+
7
+ require File.expand_path('../../../../../' \
8
+ 'lib/zakuro/version/senmyou/range/full_range',
9
+ __dir__)
10
+
11
+ require File.expand_path('../../../../../' \
12
+ 'lib/zakuro/version/senmyou/range/operated_range',
13
+ __dir__)
14
+
15
+ # :nodoc:
16
+ module Zakuro
17
+ # :nodoc:
18
+ module Senmyou
19
+ #
20
+ # Single 一日
21
+ #
22
+ module Single
23
+ #
24
+ # 生成する
25
+ #
26
+ # @param [Western::Calendar] date 西暦日
27
+ #
28
+ # @return [Result::Single] 一日検索結果(和暦日)
29
+ #
30
+ def self.get(date: Western::Calendar.new)
31
+ full_range = FullRange.new(start_date: date)
32
+ years = full_range.get
33
+
34
+ calc_date = SingleDaySpecifier.get(years: years, date: date)
35
+
36
+ operated_range = OperatedRange.new(years: years)
37
+
38
+ Result::Single.new(
39
+ data: SingleDaySpecifier.get(years: operated_range.get, date: date),
40
+ operation: create_operation(calc_date: calc_date)
41
+ )
42
+ end
43
+
44
+ #
45
+ # 運用情報を生成する
46
+ #
47
+ # @param [Result::Data::SingleDay] calc_date 和暦日(計算値)
48
+ #
49
+ # @return [Result::Operation::Bundle] 運用情報
50
+ #
51
+ def self.create_operation(calc_date: Result::Data::SingleDay.new)
52
+ first_day = calc_date.month.first_day.western_date
53
+ operation_history = Operation.specify_history(western_date: first_day)
54
+
55
+ operation_month = create_operation_month(operation_history: operation_history)
56
+
57
+ Result::Operation::Bundle.new(
58
+ operated: !operation_history.invalid?, month: operation_month, original: calc_date
59
+ )
60
+ end
61
+ private_class_method :create_operation
62
+
63
+ #
64
+ # 月履歴集約情報を生成する
65
+ #
66
+ # @param [Operation::MonthHistory] operation_history 変更履歴(月)
67
+ #
68
+ # @return [Result::Operation::Month::Bundle] 月履歴集約情報
69
+ #
70
+ def self.create_operation_month(operation_history: Operation::MonthHistory.new)
71
+ return Result::Operation::Month::Bundle.new if operation_history.invalid?
72
+
73
+ parent_operation_history = Operation.specify_history_by_id(id: operation_history.parent_id)
74
+
75
+ Result::Operation::Month::Bundle.new(
76
+ current: create_operation_month_history(operation_history: operation_history),
77
+ parent: create_operation_month_history(operation_history: parent_operation_history)
78
+ )
79
+ end
80
+ private_class_method :create_operation_month
81
+
82
+ #
83
+ # 月別履歴情報を生成する
84
+ #
85
+ # @param [Operation::MonthHistory] operation_history 変更履歴(月)
86
+ #
87
+ # @return [Result::Operation::Month::History] 月別履歴情報
88
+ #
89
+ def self.create_operation_month_history(operation_history: Operation::MonthHistory.new)
90
+ return Result::Operation::Month::History.new if operation_history.invalid?
91
+
92
+ annotations = create_annnotations(operation_history: operation_history)
93
+
94
+ reference = operation_history.reference
95
+ Result::Operation::Month::History.new(
96
+ id: operation_history.id, western_date: operation_history.western_date.format,
97
+ page: reference.page, number: reference.number, annotations: annotations
98
+ )
99
+ end
100
+ private_class_method :create_operation_month_history
101
+
102
+ #
103
+ # 注釈情報を生成する
104
+ #
105
+ # @param [Operation::MonthHistory] operation_history 変更履歴(月)
106
+ #
107
+ # @return [Array<Result::Operation::Month::Annotation>] 注釈
108
+ #
109
+ def self.create_annnotations(operation_history: Operation::MonthHistory.new)
110
+ annotations = []
111
+ operation_history.annotations.each do |annotation|
112
+ annotations.push(
113
+ Result::Operation::Month::Annotation.new(
114
+ description: annotation.description,
115
+ note: annotation.note
116
+ )
117
+ )
118
+ end
119
+
120
+ annotations
121
+ end
122
+ private_class_method :create_annnotations
123
+ end
124
+ end
125
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative './era/japan'
3
+ require_relative './era/japan/reki'
4
4
  require_relative './era/western'
5
5
  require_relative './version/genka/genka'
6
6
  require_relative './version/gihou/gihou'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zakuro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pldb
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-01 00:00:00.000000000 Z
11
+ date: 2021-04-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: mainly lunar solar calendar
14
14
  email:
@@ -21,13 +21,18 @@ files:
21
21
  - ".gitignore"
22
22
  - ".rspec"
23
23
  - ".rubocop.yml"
24
- - ".travis.yml"
25
24
  - Gemfile
26
25
  - LICENSE.txt
26
+ - Makefile
27
27
  - README.md
28
28
  - Rakefile
29
29
  - bin/console
30
30
  - bin/setup
31
+ - doc/gengou.md
32
+ - doc/operation.md
33
+ - doc/operation/csv/month.csv
34
+ - doc/operation/operation.xlsx
35
+ - doc/operation/transfer.rb
31
36
  - images/12月以降の入定気.png
32
37
  - images/12月以降の月の進退.png
33
38
  - images/source/description.numbers
@@ -38,17 +43,30 @@ files:
38
43
  - lib/zakuro/condition.rb
39
44
  - lib/zakuro/cycle/abstract_remainder.rb
40
45
  - lib/zakuro/cycle/zodiac.rb
41
- - lib/zakuro/era/gengou/set-001-until-south.yaml
42
- - lib/zakuro/era/gengou/set-002-from-north.yaml
43
- - lib/zakuro/era/gengou/set-003-modern.yaml
44
- - lib/zakuro/era/japan.rb
46
+ - lib/zakuro/era/japan/gengou.rb
47
+ - lib/zakuro/era/japan/gengou/parser.rb
48
+ - lib/zakuro/era/japan/gengou/type.rb
49
+ - lib/zakuro/era/japan/gengou/validator.rb
50
+ - lib/zakuro/era/japan/reki.rb
51
+ - lib/zakuro/era/japan/yaml/set-001-until-south.yaml
52
+ - lib/zakuro/era/japan/yaml/set-002-from-north.yaml
53
+ - lib/zakuro/era/japan/yaml/set-003-modern.yaml
45
54
  - lib/zakuro/era/western.rb
46
55
  - lib/zakuro/merchant.rb
56
+ - lib/zakuro/operation/month/parser.rb
57
+ - lib/zakuro/operation/month/type.rb
58
+ - lib/zakuro/operation/month/validator.rb
59
+ - lib/zakuro/operation/operation.rb
60
+ - lib/zakuro/operation/yaml/month.yaml
47
61
  - lib/zakuro/output/error.rb
48
62
  - lib/zakuro/output/logger.rb
49
63
  - lib/zakuro/output/response.rb
50
- - lib/zakuro/output/result.rb
51
- - lib/zakuro/output/stringifier.rb
64
+ - lib/zakuro/result/core.rb
65
+ - lib/zakuro/result/data.rb
66
+ - lib/zakuro/result/operation.rb
67
+ - lib/zakuro/result/result.rb
68
+ - lib/zakuro/tools/stringifier.rb
69
+ - lib/zakuro/tools/typeof.rb
52
70
  - lib/zakuro/version.rb
53
71
  - lib/zakuro/version/abstract_version.rb
54
72
  - lib/zakuro/version/genka/genka.rb
@@ -59,19 +77,28 @@ files:
59
77
  - lib/zakuro/version/kansei/kansei.rb
60
78
  - lib/zakuro/version/senmyou/README.md
61
79
  - lib/zakuro/version/senmyou/base/era.rb
62
- - lib/zakuro/version/senmyou/base/gengou.rb
80
+ - lib/zakuro/version/senmyou/base/multi_gengou.rb
81
+ - lib/zakuro/version/senmyou/base/multi_gengou_roller.rb
63
82
  - lib/zakuro/version/senmyou/base/remainder.rb
64
83
  - lib/zakuro/version/senmyou/base/solar_term.rb
65
84
  - lib/zakuro/version/senmyou/base/year.rb
85
+ - lib/zakuro/version/senmyou/monthly/first_day.rb
86
+ - lib/zakuro/version/senmyou/monthly/initialized_month.rb
66
87
  - lib/zakuro/version/senmyou/monthly/lunar_phase.rb
67
88
  - lib/zakuro/version/senmyou/monthly/month.rb
89
+ - lib/zakuro/version/senmyou/monthly/month_label.rb
90
+ - lib/zakuro/version/senmyou/monthly/operated_month.rb
91
+ - lib/zakuro/version/senmyou/range/annual_range.rb
92
+ - lib/zakuro/version/senmyou/range/full_range.rb
93
+ - lib/zakuro/version/senmyou/range/operated_range.rb
94
+ - lib/zakuro/version/senmyou/range/operated_solar_terms.rb
68
95
  - lib/zakuro/version/senmyou/senmyou.rb
96
+ - lib/zakuro/version/senmyou/specifier/single_day_specifier.rb
69
97
  - lib/zakuro/version/senmyou/stella/lunar_orbit.rb
70
98
  - lib/zakuro/version/senmyou/stella/solar_average.rb
71
99
  - lib/zakuro/version/senmyou/stella/solar_orbit.rb
72
100
  - lib/zakuro/version/senmyou/stella/winter_solstice.rb
73
- - lib/zakuro/version/senmyou/summary/annual_data.rb
74
- - lib/zakuro/version/senmyou/summary/gengou_data.rb
101
+ - lib/zakuro/version/senmyou/summary/single.rb
75
102
  - lib/zakuro/version/taien/taien.rb
76
103
  - lib/zakuro/version/tenpou/tenpou.rb
77
104
  - lib/zakuro/version_factory.rb
@@ -99,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
126
  - !ruby/object:Gem::Version
100
127
  version: '0'
101
128
  requirements: []
102
- rubygems_version: 3.0.3
129
+ rubygems_version: 3.1.4
103
130
  signing_key:
104
131
  specification_version: 4
105
132
  summary: japanese calendar library.
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- ---
2
- language: ruby
3
- cache: bundler
4
- rvm:
5
- - 2.6.6
6
- before_install: gem install bundler -v 2.1.4
@@ -1,375 +0,0 @@
1
- id: 1
2
- name: "南北朝前+南朝"
3
- end_date: "1393-2-11"
4
- list:
5
- - name: "允恭"
6
- start_date: "445-1-24"
7
- start_year: 34
8
- - name: "安康"
9
- start_date: "454-2-14"
10
- - name: "雄略"
11
- start_date: "457-2-10"
12
- - name: "清寧"
13
- start_date: "480-1-28"
14
- - name: "顕宗"
15
- start_date: "485-2-1"
16
- - name: "仁賢"
17
- start_date: "488-1-29"
18
- - name: "武烈"
19
- start_date: "499-1-28"
20
- - name: "継体"
21
- start_date: "507-1-29"
22
- - name: "安閑"
23
- start_date: "534-1-30"
24
- - name: "宣化"
25
- start_date: "536-2-8"
26
- - name: "欽明"
27
- start_date: "540-1-25"
28
- - name: "敏達"
29
- start_date: "572-1-31"
30
- - name: "用明"
31
- start_date: "586-1-25"
32
- - name: "崇峻"
33
- start_date: "588-2-3"
34
- - name: "推古"
35
- start_date: "593-2-7"
36
- - name: "舒明"
37
- start_date: "629-1-30"
38
- - name: "皇極"
39
- start_date: "642-2-5"
40
- - name: "大化"
41
- start_date: "645-2-2"
42
- - name: "白雉"
43
- start_date: "650-2-7"
44
- - name: "斉明"
45
- start_date: "655-2-12"
46
- - name: "天智"
47
- start_date: "662-1-25"
48
- - name: "天武"
49
- start_date: "672-2-4"
50
- - name: "朱鳥"
51
- start_date: "686-1-30"
52
- - name: "持統"
53
- start_date: "687-2-18"
54
- - name: "文武"
55
- start_date: "697-1-28"
56
- - name: "大宝"
57
- start_date: "701-2-13"
58
- - name: "慶雲"
59
- start_date: "704-2-10"
60
- - name: "和銅"
61
- start_date: "708-1-28"
62
- - name: "霊亀"
63
- start_date: "715-2-9"
64
- - name: "養老"
65
- start_date: "717-2-16"
66
- - name: "神亀"
67
- start_date: "724-1-31"
68
- - name: "天平"
69
- start_date: "729-2-3"
70
- - name: "天平勝宝"
71
- start_date: "749-1-23"
72
- - name: "天平宝字"
73
- start_date: "757-1-24"
74
- - name: "天平神護"
75
- start_date: "765-1-26"
76
- - name: "神護景雲"
77
- start_date: "767-2-4"
78
- - name: "宝亀"
79
- start_date: "770-2-1"
80
- - name: "天応"
81
- start_date: "781-1-29"
82
- - name: "延暦"
83
- start_date: "782-1-18"
84
- - name: "大同"
85
- start_date: "806-1-23"
86
- - name: "弘仁"
87
- start_date: "810-2-8"
88
- - name: "天長"
89
- start_date: "824-2-4"
90
- - name: "承和"
91
- start_date: "834-2-12"
92
- - name: "嘉祥"
93
- start_date: "848-2-9"
94
- - name: "仁寿"
95
- start_date: "851-2-5"
96
- - name: "斎衡"
97
- start_date: "854-2-1"
98
- - name: "天安"
99
- start_date: "857-1-29"
100
- - name: "貞観"
101
- start_date: "859-2-7"
102
- - name: "元慶"
103
- start_date: "877-1-18"
104
- - name: "仁和"
105
- start_date: "885-1-20"
106
- - name: "寛平"
107
- start_date: "889-2-4"
108
- - name: "昌泰"
109
- start_date: "898-1-26"
110
- - name: "延喜"
111
- start_date: "901-1-23"
112
- - name: "延長"
113
- start_date: "923-1-20"
114
- - name: "承平"
115
- start_date: "931-1-22"
116
- - name: "天慶"
117
- start_date: "938-2-3"
118
- - name: "天暦"
119
- start_date: "947-1-25"
120
- - name: "天徳"
121
- start_date: "957-2-3"
122
- - name: "応和"
123
- start_date: "961-1-20"
124
- - name: "康保"
125
- start_date: "964-2-16"
126
- - name: "安和"
127
- start_date: "968-2-2"
128
- - name: "天禄"
129
- start_date: "970-2-9"
130
- - name: "天延"
131
- start_date: "973-2-6"
132
- - name: "貞元"
133
- start_date: "976-2-3"
134
- - name: "天元"
135
- start_date: "978-2-10"
136
- - name: "永観"
137
- start_date: "983-2-16"
138
- - name: "寛和"
139
- start_date: "985-1-24"
140
- - name: "永延"
141
- start_date: "987-2-1"
142
- - name: "永祚"
143
- start_date: "989-2-9"
144
- - name: "正暦"
145
- start_date: "990-1-30"
146
- - name: "長徳"
147
- start_date: "995-2-3"
148
- - name: "長保"
149
- start_date: "999-1-20"
150
- - name: "寛弘"
151
- start_date: "1004-1-25"
152
- - name: "長和"
153
- start_date: "1012-1-26"
154
- - name: "寛仁"
155
- start_date: "1017-1-31"
156
- - name: "治安"
157
- start_date: "1021-2-15"
158
- - name: "万寿"
159
- start_date: "1024-2-13"
160
- - name: "長元"
161
- start_date: "1028-1-30"
162
- - name: "長暦"
163
- start_date: "1037-1-19"
164
- - name: "長久"
165
- start_date: "1040-2-15"
166
- - name: "寛徳"
167
- start_date: "1044-2-2"
168
- - name: "永承"
169
- start_date: "1046-2-9"
170
- - name: "天喜"
171
- start_date: "1053-1-23"
172
- - name: "康平"
173
- start_date: "1058-1-27"
174
- - name: "治暦"
175
- start_date: "1065-2-8"
176
- - name: "延久"
177
- start_date: "1069-1-26"
178
- - name: "承保"
179
- start_date: "1074-1-30"
180
- - name: "承暦"
181
- start_date: "1077-1-27"
182
- - name: "永保"
183
- start_date: "1081-2-12"
184
- - name: "応徳"
185
- start_date: "1084-2-9"
186
- - name: "寛治"
187
- start_date: "1087-2-6"
188
- - name: "嘉保"
189
- start_date: "1094-1-19"
190
- - name: "永長"
191
- start_date: "1096-1-28"
192
- - name: "承徳"
193
- start_date: "1097-1-16"
194
- - name: "康和"
195
- start_date: "1099-1-24"
196
- - name: "長治"
197
- start_date: "1104-1-30"
198
- - name: "嘉承"
199
- start_date: "1106-2-6"
200
- - name: "天仁"
201
- start_date: "1108-2-14"
202
- - name: "天永"
203
- start_date: "1110-1-22"
204
- - name: "永久"
205
- start_date: "1113-1-20"
206
- - name: "元永"
207
- start_date: "1118-1-24"
208
- - name: "保安"
209
- start_date: "1120-2-1"
210
- - name: "天治"
211
- start_date: "1124-1-19"
212
- - name: "大治"
213
- start_date: "1126-1-25"
214
- - name: "天承"
215
- start_date: "1131-1-31"
216
- - name: "長承"
217
- start_date: "1132-1-20"
218
- - name: "保延"
219
- start_date: "1135-2-15"
220
- - name: "永治"
221
- start_date: "1141-2-9"
222
- - name: "康治"
223
- start_date: "1142-1-29"
224
- - name: "天養"
225
- start_date: "1144-2-6"
226
- - name: "久安"
227
- start_date: "1145-1-25"
228
- - name: "仁平"
229
- start_date: "1151-1-20"
230
- - name: "久寿"
231
- start_date: "1154-2-14"
232
- - name: "保元"
233
- start_date: "1156-1-24"
234
- - name: "平治"
235
- start_date: "1159-1-21"
236
- - name: "永暦"
237
- start_date: "1160-2-9"
238
- - name: "応保"
239
- start_date: "1161-1-28"
240
- - name: "長寛"
241
- start_date: "1163-2-5"
242
- - name: "永万"
243
- start_date: "1165-2-13"
244
- - name: "仁安"
245
- start_date: "1166-2-3"
246
- - name: "嘉応"
247
- start_date: "1169-1-30"
248
- - name: "承安"
249
- start_date: "1171-2-7"
250
- - name: "安元"
251
- start_date: "1175-1-24"
252
- - name: "治承"
253
- start_date: "1177-2-1"
254
- - name: "養和"
255
- start_date: "1181-1-17"
256
- - name: "寿永"
257
- start_date: "1182-2-5"
258
- - name: "元暦"
259
- start_date: "1184-2-14"
260
- - name: "文治"
261
- start_date: "1185-2-2"
262
- - name: "建久"
263
- start_date: "1190-2-7"
264
- - name: "正治"
265
- start_date: "1199-1-28"
266
- - name: "建仁"
267
- start_date: "1201-2-5"
268
- - name: "元久"
269
- start_date: "1204-2-3"
270
- - name: "建永"
271
- start_date: "1206-2-10"
272
- - name: "承元"
273
- start_date: "1207-1-30"
274
- - name: "建暦"
275
- start_date: "1211-1-17"
276
- - name: "建保"
277
- start_date: "1213-1-24"
278
- - name: "承久"
279
- start_date: "1219-1-18"
280
- - name: "貞応"
281
- start_date: "1222-2-13"
282
- - name: "元仁"
283
- start_date: "1224-1-22"
284
- - name: "嘉禄"
285
- start_date: "1225-2-9"
286
- - name: "安貞"
287
- start_date: "1227-1-19"
288
- - name: "寛喜"
289
- start_date: "1229-1-27"
290
- - name: "貞永"
291
- start_date: "1232-1-24"
292
- - name: "天福"
293
- start_date: "1233-2-11"
294
- - name: "文暦"
295
- start_date: "1234-1-31"
296
- - name: "嘉禎"
297
- start_date: "1235-1-21"
298
- - name: "暦仁"
299
- start_date: "1238-1-18"
300
- - name: "延応"
301
- start_date: "1239-2-6"
302
- - name: "仁治"
303
- start_date: "1240-1-26"
304
- - name: "寛元"
305
- start_date: "1243-1-22"
306
- - name: "宝治"
307
- start_date: "1247-2-7"
308
- - name: "建長"
309
- start_date: "1249-2-14"
310
- - name: "康元"
311
- start_date: "1256-1-29"
312
- - name: "正嘉"
313
- start_date: "1257-1-17"
314
- - name: "正元"
315
- start_date: "1259-1-25"
316
- - name: "文応"
317
- start_date: "1260-2-13"
318
- - name: "弘長"
319
- start_date: "1261-2-1"
320
- - name: "文永"
321
- start_date: "1264-1-31"
322
- - name: "建治"
323
- start_date: "1275-1-29"
324
- - name: "弘安"
325
- start_date: "1278-1-25"
326
- - name: "正応"
327
- start_date: "1288-2-4"
328
- - name: "永仁"
329
- start_date: "1293-2-8"
330
- - name: "正安"
331
- start_date: "1299-2-2"
332
- - name: "乾元"
333
- start_date: "1302-1-30"
334
- - name: "嘉元"
335
- start_date: "1303-1-19"
336
- - name: "徳治"
337
- start_date: "1306-2-14"
338
- - name: "延慶"
339
- start_date: "1308-1-24"
340
- - name: "応長"
341
- start_date: "1311-1-21"
342
- - name: "正和"
343
- start_date: "1312-2-8"
344
- - name: "文保"
345
- start_date: "1317-2-13"
346
- - name: "元応"
347
- start_date: "1319-1-22"
348
- - name: "元亨"
349
- start_date: "1321-1-29"
350
- - name: "正中"
351
- start_date: "1324-1-27"
352
- - name: "嘉暦"
353
- start_date: "1326-2-4"
354
- - name: "元徳"
355
- start_date: "1329-1-31"
356
- - name: "元弘"
357
- start_date: "1331-2-8"
358
- - name: "建武"
359
- start_date: "1334-2-5"
360
- - name: "延元"
361
- start_date: "1336-2-14"
362
- - name: "興国"
363
- start_date: "1340-1-30"
364
- - name: "正平"
365
- start_date: "1346-1-24"
366
- - name: "建徳"
367
- start_date: "1370-1-28"
368
- - name: "文中"
369
- start_date: "1372-2-6"
370
- - name: "天授"
371
- start_date: "1375-2-2"
372
- - name: "弘和"
373
- start_date: "1381-1-26"
374
- - name: "元中"
375
- start_date: "1384-1-23"