-
Notifications
You must be signed in to change notification settings - Fork 4
/
958.txt
1695 lines (1297 loc) · 63.5 KB
/
958.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[16] [DFN[元号コード]]とは、[[計算機システム]]の処理や[[情報交換]]などに用いる[[日時形式]]において、
[[元号]]に[[符号]]を割り振って識別するものです。
[[元号の名前][元号名]]自体がある種の[[符号]]とも言えますが、
[[元号コード]]はそれを更に扱いやすい値に置き換えたものです。
[SEE[ 元号自体については[[元号]] ]]
[38] いくつかの流儀があります。
[FIG(table)[ [18] [[元号コード]]
:元号: [[元号]]
:#7: #7
:#2: #2
:#8: #8
:#1: #1
:#17: #17
:#16: #16
:#18:#18
:#19:#19
:#4: #4
:#5: #5, #20
:#6: #6
:#9: #9
:#15: #15
:#14: #14
:#10: #10
:元号: [[江戸時代]]以前
:#8: あり
:#10: あり
:#14: あり
:#15: あり
:#16: あり
:#19: [N[0]]
:元号: [[明治]]
:#7: [CODE[明]]
:#2: [CODE[M][明治]]
:#1: [N[1]]
:#16: [N[1]]
:#17: [N[1]]
:#18: [N[1]]
:#19: [N[1]]
:#8: [N[1]]
:#3: [CODE[U+337E]] ([CODE[㍾]])
:#4: [N[1]]
:#6: [N[3]]
:#10: [N[232]]
:#11: [N[7621]]
:#12: [N[12041]]
:#13: [N[0x878D]]
:#14: [N[244]]
:#15: [N[228]]
:#5: [N[-1]]
:元号: [[大正]]
:#7: [CODE[大]]
:#2: [CODE[T][大正]]
:#1: [N[2]]
:#16: [N[2]]
:#17: [N[2]]
:#18: [N[2]]
:#19: [N[2]]
:#8: [N[2]]
:#3: [CODE[U+337D]] ([CODE[㍽]])
:#4: [N[3]]
:#6: [N[2]]
:#10: [N[233]]
:#11: [N[7622]]
:#12: [N[12042]]
:#13: [N[0x878E]]
:#14: [N[245]]
:#15: [N[229]]
:#5: [N[0]]
:元号: [[昭和]]
:#7: [CODE[昭]]
:#2: [CODE[S][昭和]]
:#1: [N[3]]
:#16: [N[3]]
:#17: [N[3]]
:#18: [N[3]]
:#19: [N[3]]
:#8: [N[3]]
:#3: [CODE[U+337C]] ([CODE[㍼]])
:#4: [N[5]]
:#5: [N[1]]
:#6: [N[1]]
:#10: [N[234]]
:#11: [N[7623]]
:#12: [N[12043]]
:#13: [N[0x878F]]
:#14: [N[246]]
:#15: [N[230]]
:元号: [[平成]]
:#7: [CODE[平]]
:#2: [CODE[H][平成]]
:#1: [N[4]]
:#16: [N[4]]
:#17: [N[4]]
:#18: [N[4]]
:#19: [N[4]]
:#8: [N[4]]
:#3: [CODE[U+337B]] ([CODE[㍻]])
:#4: [N[7]]
:#5: [N[2]]
:#6: [N[4]]
:#9: [N[1]]
:#10: [N[235]]
:#11: [N[8323]]
:#12: [N[12044]]
:#13: [N[0x877E]]
:#14: [N[247]]
:元号: [[令和]]
:#7: [CODE[令][令和]]
:#2: [CODE[R][令和]]
:#1: [N[5]]
:#16: [N[5]]
:#17: [N[5]]
:#18: [N[5]]
:#19: [N[5]]
:#8: [N[5]]
:#3: [CODE[U+32FF]] ([CODE[㋿]])
:#4: [N[9]]
:#9: [N[2]]
:#5: [N[3]]
:#6: [N[5]]
:#10: [N[236]]
:#11: [N[23058]]
:#12: [N[23059]]
:元号: [[西暦]]
:#17: [N[0]]
:#8: [N[20]]
:元号: [[私年号]]
:#8: あり
:元号: 国外
:#8: あり
:元号: その他
:#6: [N[9]]
:#18: [N[9]]
]FIG]
[SEE[ 省略部分は >>100、元号合字は >>113 ]]
* カバー範囲
[20] 多くの方式は、実用上必要な範囲のみ定義されています。
最も多いものは[[明治]]以後のみ対応しているもので、
[[昭和]]以後のみ対応のものもあります。
[21] [[改元]]時にすぐに新[[元号]]に対応できるような割り振り方、
システムとしておく必要もあります。
[24] 多くの方式は、[[日本の元号]]のみ対応しています。現在公式に用いられている[[元号]]は、
[[日本の元号]]のみです。
* #8 - 全元号データファイル
[8008]
この [[JSON]] データファイルでは、[[古今東西]]の ([[日本]]以外も含む)
[[元号]]に固有の[[正]]の[[整数]]の数値識別子 [CODE[id]] が割り当てられています。
[[明治]]以後は [N[1]] から順に割り当てられ (#1)、 [N[19]] まで予約されています。
[N[20]] には[[西暦]]が、 [N[21]] 以降には色々な[[元号]]と[[紀年法]]が割り当てられています。
[REFS[
- [31] ([TIME[2016-10-29 12:57:59 +09:00]] 版) <https://raw.githubusercontent.com/manakai/data-locale/master/data/calendar/era-defs.json>
-- [32] [[ドキュメント]] [CITE@en[data-locale/calendar-era-defs.txt at master · manakai/data-locale]] ([TIME[2016-10-29 12:58:43 +09:00]] 版) <https://github.com/manakai/data-locale/blob/master/doc/calendar-era-defs.txt>
]REFS]
* #1、#16、#17、#18、#19 - 数値符号 (明治から連番)
[8001]
[[明治]]を [N[1]] とし、順に割り振っていくものが[[数値符号]]として主流のようです。
[[平成]]は [N[4]] となります。
[FIG(table)[ [41] [[元号]]のよく使われる数値コード (#1)
:元号: [[元号]]
:符号: [[符号]]
:元号: [[明治]]
:符号: [N[1]]
:元号: [[大正]]
:符号: [N[2]]
:元号: [[昭和]]
:符号: [N[3]]
:元号: [[平成]]
:符号: [N[4]]
:元号: [[令和]]
:符号: [N[5]]
]FIG]
[34] [[平成]]より後も、[[改元]]があるたびに自然な順序で追加されていくことが期待されます。
[112]
[[COBOL]] で書かれたプログラムなどでは、
「3600214」
で[TIME[昭和60年2月14日][1985-02-14]]を表すように、
[[日時形式]]の一部としてよく使われています。
[109]
[[.NET Framework]] でも採用されています [SRC[>>108]] (#1)。
[72] [[昭和]]以後のみ対応するものもあります。
[25] その他を [N[9]] で表す場合もあります
[SRC[>>13, >>14]]
(#18)。
[8017]
[[西暦]]を [N[0]] で表す場合もあります [SRC[>>28]] (#17)。
[91]
[[Java]] の
[CODE[JapaneseImperialCalendar]]
は「明治以前」
を [N[0]]
で表しています (#19)。
[SEE[ [CODE[JapaneseImperialCalendar]] ]]
[8016]
[CITE[戸籍情報システム標準仕様書]]は、
[[明治]]以降を [N[1]]
から順に割り当てると共に、
[[元治]]を [CODE[Y]]、
[[慶応]]を [CODE[Z]]
としています。
[[慶応]]以前はアルファベットを逆順、
[[明治]]以降は数字を昇順と説明があります。 [SRC[>>53]]
(#16)
[61]
理論上 [CODE[X]] 以前も [CODE[A]] まで遡れますが、
どこまで利用されているかは不明です。
仕様書には [CODE[Y]] からしか示されていませんが、
採番方法が明記されており、
よく使われるものを例示したに限らないとも思われます。
平成後期の報道によると、
[[文化]]年間生まれの人が死亡とされないまま現行[[戸籍]]に残されていました
[SRC[>>85]]。
平成30年時点で戸籍電算化はほぼすべての[[地方自治体]]で完了しており、
[CODE[X]] 以前の日付の記述が必要となった可能性はあります。
なお、複数の家系調査業者の Web サイトによると、
(電算化はともかく) [[戸籍]]で遡れるのは[[文化]]頃までのようです。
;; [59] なお戸籍では外国人について[[西暦]]を使うことがありますが、
[[元号コード]]によって区別する仕組みとはなっていないようです。
[35] [[元号コード]]が[[十進数]]1桁となっている実装では、 [N[10]] 以降
([N[9]] に特別な意味を持たせる場合、 [N[9]] 以降) の[[改元]]があっても対応できません。
[[十六進数]]1桁となっている実装では、 [N[16]] 以降の[[改元]]に対応できません。
それらがいったい何年後に訪れるかはまったく予測できませんが、それまでに改修が必要となります。
[39] その頃には[[明治]]も遥か昔の[[元号]]となっているでしょうから、
[N[1]] から再利用することも可能かもしれませんが、混乱は避けられなそうです。
古い時代の記録が残っているとデータが滅茶苦茶になりますし、
[[日時の整列]]を[[元号コード]]の[[数値]]としての大小を使って行っていると破綻します。
[REFS[
- [53] [CITE[戸籍情報システム標準仕様書]] ([TIME[2019-03-15 09:39:48 +09:00]]) <http://www.moj.go.jp/content/000112224.pdf#page=443>
- [85] [CITE@ja[asahi.com(朝日新聞社):江戸時代生まれ、200歳…戸籍上で生存、なぜ続く? - プレーバック1週間]] ([[The Asahi Shimbun Company]]著, [TIME[2019-05-21 12:47:16 +09:00]]) <http://www.asahi.com/special/playback/TKY201008290101.html>
[FIG(quote)[
[FIGCAPTION[
[1] [CITE@ja[入力方式による納税手続|e-Tax]]
([[国税庁]] 著, [TIME[2015-05-22 16:55:20 +09:00]] 版)
<http://www.e-tax.nta.go.jp/tetsuzuki/tetsuzuki4_3.htm>
]FIGCAPTION]
> (C)元号コード
> 元号 元号コード
> 昭和 3
> 平成 4
]FIG]
[FIG(quote)[
[FIGCAPTION[
[2] [CITE[9号:VB.NETデータベースプログラミング(バックナンバー)]]
([TIME[2009-08-02 19:46:31 +09:00]] 版)
<http://park5.wakwak.com/~weblab/mailMagazine/mag009.html>
]FIGCAPTION]
> 元号コード 元号名
> ---------------------
> 1 明治
> 2 大正
> 3 昭和
> 4 平成
]FIG]
[FIG(quote)[
[FIGCAPTION[
[3] ([TIME[2016-01-20 22:12:04 +09:00]] 版)
<http://webcache.googleusercontent.com/search?q=cache:s3-rMbN70NoJ:www.jinjika.jim.titech.ac.jp/fuk/apply/forms/cyouki-henkou.pdf>
]FIGCAPTION]
> @ 生年月日欄 (39~45カラム) 組合員の生年月日を元号コード (大正二 2、 昭和 二 3、 平成エ 4) を含めて記入します。 また、 生年月 日は右詰めで記入し丶 空きマスには0を記入します。
]FIG]
[FIG(quote)[
[FIGCAPTION[
[4] [CITE@ja[元号が変わったら、今使用しているパソコンやその他コンピューターシステム... - Yahoo!知恵袋]]
([TIME[2016-01-20 22:12:41 +09:00]] 版)
<http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1282739017>
]FIGCAPTION]
> 元号を扱うシステムのほとんどで、元号コードを1:明治,2:大正,3:昭和,4:平成と定めているので、新たに5:新元号を作ることとなります。
]FIG]
[FIG(quote)[
[FIGCAPTION[
[6] [CITE[B0010]]
([TIME[2016-01-20 22:14:41 +09:00]] 版)
<http://webcache.googleusercontent.com/search?q=cache:XcWpjevAtbIJ:www.inpit.go.jp/content/100030176.pdf>
]FIGCAPTION]
> N1 : 元号コード 1;明治 2;大正 3;昭和 4;平成
]FIG]
[FIG(quote)[
[FIGCAPTION[
[28] ( ([TIME[2015-03-19 15:01:57 +09:00]]))
<http://www.pref.shiga.lg.jp/police/seikatu/seikatsukankyou/kobutu/files/23_kisaiyouryou.pdf>
]FIGCAPTION]
> 昭和30年1月2日
> 生年月日
> 西暦 明治 大正 昭和 平成 年 月 日
> 0 1 2 '3'' 4 0 0 3 0 0 1 0 2
> 西暦1955年10月23日
> 生年月日
> 西暦 明治 大正 昭和 平成 年 月 日
> ''0'' 1 2 3 4 1 9 5 5 1 0 2 3
]FIG]
[FIG(quote)[
[FIGCAPTION[
[29] [CITE@en[UDF詳細 5.日付関数 · hiromasah/charsiu Wiki]]
( ([TIME[2016-10-29 12:55:28 +09:00]]))
<https://github.com/hiromasah/charsiu/wiki/UDF%E8%A9%B3%E7%B4%B0-5.%E6%97%A5%E4%BB%98%E9%96%A2%E6%95%B0>
]FIGCAPTION]
> 元号コードは以下のようになります。
> 元号 元号コード
> 明治 1
> 大正 2
> 昭和 3
> 平成 4
]FIG]
[FIG(quote)[
[FIGCAPTION[
[40] [CITE@en[UDF詳細 5.日付関数 · hiromasah/charsiu Wiki]]
([TIME[2017-05-14 13:45:25 +09:00]])
<https://github.com/hiromasah/charsiu/wiki/UDF%E8%A9%B3%E7%B4%B0-5.%E6%97%A5%E4%BB%98%E9%96%A2%E6%95%B0>
]FIGCAPTION]
> 和暦の元号と年、月日で構成される日付文字列です。
> 元号コードは以下のようになります。
> 元号 元号コード
> 明治 1
> 大正 2
> 昭和 3
> 平成 4
> 平成23年7月25日は 4230725 と表記されます。
]FIG]
- [108] [CITE@ja-jp[JapaneseCalendar.Eras Property (System.Globalization) | Microsoft Docs]] ([[dotnet-bot]]著, [TIME[2019-09-04 20:47:48 +09:00]]) <https://docs.microsoft.com/ja-jp/dotnet/api/system.globalization.japanesecalendar.eras>
]REFS]
* #5、#20 - 数値符号 (昭和から連番)
[8005]
[[昭和]]を [N[1]] とし、以後順に[[整数]]を割り当てていくものです
(#5)。
[60]
1桁の[[数字]]とするもの [SRC[>>11]] や
[[0埋め]]した2桁の[[数字]]とするもの [SRC[>>26, >>27]] が知られています。
[101]
[CODE[java.time.chrono]]
は[[昭和]]を [N[1]]
としていますが、
[[大正]]は [N[0]]、
[[明治]]は [N[-1]]
としています
(#20)。
[SRC[>>93]]
[REFS[
[FIG(quote)[
[FIGCAPTION[
[11] [CITE[NEC MedicalSystems-トピックス]]
([TIME[2000-04-29 23:10:36 +09:00]] 版)
<http://www.kenn.co.jp/topics/tp97021.htm>
]FIGCAPTION]
> ア:承認した年(数字3桁)
> 昭和・・・1
> 平成・・・2
> これに元号の年数(2桁)を組み合わせる。
]FIG]
[FIG(quote)[
[FIGCAPTION[
[26] [CITE@ja[法務省:1 申請データに関する変更]]
( ([TIME[2015-02-24 14:31:41 +09:00]]))
<http://www.moj.go.jp/MINJI/henkou/01.html>
]FIGCAPTION]
>
,*変更点 ,*変更前 ,*変更後
,*年月日の入力方法 ,"西暦の年を示す4桁の数字,月を示す2桁の数字及び日を示す2桁の数字をこの順に並べて入力する(例:20080901)。 ","元号を使用し,元号を示す元号コード,年を示す2桁の数字,月を示す2桁の数字及び日を示す2桁の数字をそれぞれの項目ごとに入力する。"
]FIG]
[FIG(quote)[
[FIGCAPTION[
[27]
[CITE[債権譲渡登記申請データ仕様 (平成22年3月1日更新)]]
(法務省 [TIME[2018-03-16 14:18:03 +09:00]])
<http://www.moj.go.jp/content/000001895.pdf#page=14>
]FIGCAPTION]
> 表7-3.元号コード一覧
,*コード名称 ,*桁数 ,*コード ,*内 容
,元号コード,2,01 ,昭和
,元号コード,2,02 ,平成
]FIG]
- [93] [CITE[jdk/jdk: a645b2f7bece src/java.base/share/classes/java/time/chrono/JapaneseEra.java]] ([TIME[2019-09-04 20:29:03 +09:00]]) <http://hg.openjdk.java.net/jdk/jdk/file/tip/src/java.base/share/classes/java/time/chrono/JapaneseEra.java>
]REFS]
* #6 - 数値符号 (昭和から明治まで逆順、平成から連番)
[8006]
[[昭和]]を [N[1]] とし、
[[大正]]を [N[2]]、
[[明治]]を [N[3]]
と遡っていくものです。[[昭和]]時代に設計されたものなのでしょう。
設計者は次の[[改元]]のことを何も考えていなかったのでしょうか。
[[平成]]には [N[4]] が割り当てられており、
以後の[[改元]]でも順に大きな[[整数]]を割り当てていくものと思われます。
[130]
[N[9]] を「その他」とすることがあります。
[REFS[
[FIG(quote)[
[FIGCAPTION[
[12] [CITE[給与支払報告書(総務省通達形式CSV) 平成24年以降分]]
([[田中 裕明]] 著, [TIME[2016-01-20 22:27:41 +09:00]] 版)
<https://webcache.googleusercontent.com/search?q=cache:FKI9OdeEgZAJ:www.city.kyotango.lg.jp/kurashi/oshirase/zaimu/zeimu/documents/csv_layout_h24.pdf>
]FIGCAPTION]
> 受給者の生年月日の元号、年、月及び日を記録する。この場合、元 号については、昭和は「1」、大正は「2」、明治は「3」、平成 は「4」を記録し、また「年」、「月」及び「日」については、そ れぞれ別項目で2桁を使用する。
]FIG]
[FIG(quote)[
[FIGCAPTION[
[13] [CITE[1 レコード 項目番号 項 目 名 記録要領 1 法定資料の種類 「331」を記録する。]]
([[densan]] 著, [TIME[2016-01-20 22:28:43 +09:00]] 版)
<https://webcache.googleusercontent.com/search?q=cache:ZhVhlDB_aLsJ:https://www.city.meguro.tokyo.jp/shinseisho/zeikin/teishutsu.files/5.pdf>
]FIGCAPTION]
> 元号については、昭和は「1」、大正は「2」、 明治は「3」、平成は「4」、その他は「9」を記録 し、また、「年」、「月」及び「日」は、それぞ れ別項目で2桁を使用すること。 (例)「平成17年8月19日 → 4.17.08.19」
]FIG]
[FIG(quote)[
[FIGCAPTION[
[14] [CITE[個人の住民税の給与支払報告書及び公的年金等支払報告書の 光ディスク等化について(通知)]]
([[総務省自治税務局長]]著、総税市第49号 平成25年11月21日、[TIME[2014-02-18 13:00:07 +09:00]] 版)
<http://www.soumu.go.jp/main_sosiki/jichi_zeisei/czaisei/czaisei_seido/ichiran13/pdf/ichiran13_02-04.pdf>
]FIGCAPTION]
> 受給者の生年月日の元号、年、月及び日を記録する。この場合、元
号については、昭和は「1」、大正は「2」、明治は「3」、平成は「4」、
その他は「9」を記録し、また「年」、「月」及び「日」については、
それぞれ 2 けたを使用し、1 けたの場合は後づめ(前ゼロ)で記録す
る。
]FIG]
]REFS]
* #9 - 数値符号 (平成から連番)
[8009]
[[平成]]を [N[1]]、[[令和]]を [N[2]] とするものです。
[REFS[
[FIG(quote)[
[FIGCAPTION[
[73] [CITE[納品運用ガイドライン 新旧対照表]]
([TIME[2018-04-04 08:37:00 +09:00]])
<https://www.city.sano.lg.jp/nyusatsu/02/14-05s.pdf>
]FIGCAPTION]
> 第5版(平成30年4月1日)
> [SNIP[]]
> 1
> 元号
> [SNIP[]]
> ※3 平成の次の元号は、「2」とする。
> [SNIP[]]
> 元号コードについて、平成の次の元号となった場合
の記載方法を追記
]FIG]
]REFS]
* #4 - 数値符号 (明治から奇数)
[8004]
[[明治]]以後の[[元号]]に [N[1]] から順に[[奇数]]を割り当てる[[数値コード]]が使われることがあります。
[48] 1桁の[[十進整数]]として扱う場合、[[平成31年新元号]]の [N[9]]
で[[使い切ってしまいます][日時桁溢れ問題]]。該当するシステムは2桁化改修 [SRC[>>44]]
が予定されていたりするようです。
[REFS[
[FIG(quote)[
[FIGCAPTION[
[10] [CITE@ja[請求内訳書記載要領]]
([TIME[2016-01-20 22:20:42 +09:00]] 版)
<http://www.rousai-ric.or.jp/tabid/212/Default.aspx>
]FIGCAPTION]
> なお、「元号」欄には、明治は「1」、大正は「3」、昭和は「5」、平成は「7」のいずれかの該当するコード番号を記入して下さい。
]FIG]
[FIG(quote)[
[FIGCAPTION[
[44] ([TIME[2017-12-25 09:59:42 +09:00]])
<http://www.mhlw.go.jp/sinsei/chotatu/chotatu/kankeibunsho/20171225-1/dl/20171225-01-01.pdf#page=6>
]FIGCAPTION]
> 先般、皇室典範特例法が成立・公
布され、早ければ平成31年1月に
改元がなされる見込みとなったこと
から、①次期更改と同タイミングで
新元号に係る元号コードの利用を可
能とする改修及び②次期更改後に元
号コードの枯渇を防止するため元号
コードを二桁化するための改修(以
下「新元号対応」という。)を行うも
のである。
> ・次元号対応:平成
31年1月上旬
(※2)
・二桁化対応:平成
32年2月下旬
]FIG]
[FIG(quote)[
[FIGCAPTION[
[45] ([TIME[2017-12-25 09:59:42 +09:00]])
<http://www.mhlw.go.jp/sinsei/chotatu/chotatu/kankeibunsho/20171225-1/dl/20171225-01-01.pdf#page=67>
]FIGCAPTION]
> 1 新元号をコード「9」(労災・基準サブシステム)、「5」(レセプトサブシス
> テム)」とする暫定対応を行う。
> ①入力画面で新元号の入力を可能とし、出力画面で新元号を表示可能
> とする。
> ②入力帳票(OCR帳票)で新元号を入力可とする。
> ③入力帳票(OCR帳票)のうち元号欄を持たない帳票は、帳票入力を原
> 則不可とする。(一部を除く)
> ④国民向け帳票出力、及び内部出力帳票に新元号を出力する。
> ⑤元号欄なし出力帳票へ元号欄を追加する。
> ⑥外部連携ファイルのIFを改定し、新元号の入出力可とする。
> ⑦入力帳票(OCR帳票)の入力値凡例を追加する。
> ⑧電子申請様式で新元号を入力可とする。
> 2 年表示に係る「元年」、「1年」の画面・帳票表示については、前提条
> 件⑦に示す内容を踏襲することを想定しているが、、労災保険業務課と
> 協議の上で統一を図ること。
> 3 年表示に係る「元年」、「1年」の画面入力については、前提条件⑦に
> 示す内容を踏襲することを想定しているが、労災保険業務課と協議の
> 上で統一を図ること。
> 4 年表示に係る「元年」、「1年」のOCR帳票への記載(OCR入力)につ
> いては、前提条件⑦に示す内容を踏襲することを想定しているが、労災
> 保険業務課と協議の上で統一を図ること。
> 労働基準行政システム全部(基準・労災サブシステム(共通番号連携管
> 理サブシステム含む)、レセプトサブシステム)を対象とする。
> ①新元号は漢字2文字
> 和暦で入出力する画面、帳票、外部連携ファイルは、元号部分を全角2桁
> の領域で定義しており、次元号が3文字以上となる場合は領域の拡張等
> 別途必要な対策を行うこと
> ②新元号コード
> 基準・労災システムで扱っている元号コードは1:明治、3:大正、5:昭和、
> 7:平成であり、新元号コードは「9」とする。
> レセプトシステムで扱っている元号コードは1:明治、2:大正、3:昭和、4:
> 平成であり、新元号コードは「5」とする。
> ③改元の時期
> 改元は2019年1月1日(平成31年1月1日)に行われるものとして、西暦から
> 和暦への変換は、2018年12月⇒平成30年12月、2019年1月⇒新元号の1
> 年(元年)1月として扱うものとする。
> ④未来日を出力する画面・帳票の扱いについて
> 支払予定日や有効期間等、システム処理日から見て未来日を出力する画
> 面・帳票が存在する。
> しかし、改元自体は2019年1月1日であるため、改元前の2018年(平成30
> 年)の機械処理で2019年の日付を出力する場合は従来どおりの元号「平
> 成31年」として出力することとし、改元後の2019年の機械処理で2019年の
> 日付を出力する場合は「新元号の1年(元年)」として出力するものとする。
> ⑤ソフトウェアの元号対応について
> ソフトウェアの機能を利用して和暦の出力を行っている機能が存在するた
> め、以下のソフトウェアが新元号に対応し、本番環境にそのバージョンが
> 適用されるものとする。
> ListCreator(日付編集形式の元号)
> Microsoft Office(Excel、Wordの日付形式)
> Microsoft .NET Framework(DateTimeクラス)
> ⑥リリース時期については、改元日の確定時に決定するものとする。
> ⑦現行の基準システムにおける表示及び入力について
> ・画面・帳票表示:「元年」
> ・画面入力:いずれも入力可
> ・OCR帳票への記載(OCR入力):「1年」
]FIG]
[FIG(quote)[
[FIGCAPTION[
[46] ([TIME[2017-12-25 09:59:42 +09:00]])
<http://www.mhlw.go.jp/sinsei/chotatu/chotatu/kankeibunsho/20171225-1/dl/20171225-01-01.pdf>
]FIGCAPTION]
> ①和暦管理している項目を西暦に変換する。(データ移行が必要)
> ②全画面全帳票の内部処理を見直し、改修を行う。
> 労働基準行政システム全部(基準・労災サブシステム(共通番号連携管
> 理サブシステム含む)、レセプトサブシステム)を対象とする。
> ・システム内で管理する元号コードを2桁化し、その対象を明治、大正、昭
> 和、平成、H31.1改元予定の新元号の5つとする。
> ・システム内で管理する元号コードは2桁化するが、帳票、画面のレイアウ
> ト変更が発生しないよう、見た目上は1桁表示のままとする。
> ・元号コードの2桁化対応として、以下を実施する。
> - サーバ側の共通処理として元号コード変換処理(1→2桁)を追加する
> - 労災、基準、電子申請システムの各影響箇所を改修する。
> ・現状和暦管理されているDB項目はすべて西暦に変更する。
]FIG]
[FIG(quote)[
[FIGCAPTION[
[23] ([TIME[2018-08-03 15:40:41 +09:00]])
<https://www.smtb.jp/business/pension/pamail/e-news/2018018.pdf>
]FIGCAPTION]
> 日本年金機構で使用する新元号の「コード」が「9」となりました。弊社におきまして
も同様に新元号の「コード」として「9」を使用することといたします。
[SNIP[]]
> 日本年金機構へご提出いただくデータ等に使用する新元号を表す1桁の数字(コード)が「9」
となりました。(厚生労働省宛確認しております。)
> <日本年金機構における元号を表す「コード」>
> 明治:「1」 平成:「7」
> 大正:「3」 新元号:「9」
> 昭和:「5」
]FIG]
]REFS]
* #15 - 数値符号 (日本年号大観)
[8015]
[[森本角蔵]]の[CITE[日本年号大観]]の通し番号です。
[[日本の元号]]のうち[[南朝]]を採り、
[[北朝]]は別系列の番号を振っています。
[105]
[[1起源]]です。
[121]
[[白鳳]]を含み[[元暦]]を含まない点が #14 と違います。
[CITE[日本年号史大事典]]などに #14 と #15 の差分が示されています。
[REFS[
- [94] [CITE[[[日本年号大観]]]]
-- [CITE@ja-jp[[[日本年号大観]] (1938年) | 森本 角蔵 |本 | 通販 | Amazon]] ([TIME[2019-04-19 20:37:39 +09:00]]) <https://www.amazon.co.jp/exec/obidos/ASIN/B000JBA0J6/wakaba1-22/>
]REFS]
* #14 - 数値符号 (日本年号史大事典)
[8014]
[[所功]]らの[CITE[日本年号史大事典]]の通し番号です。
[[日本の元号]] ([[北朝]]、[[南朝]]どちらも含む[[公年号]]すべて)
に[[整数]]を割り振っています。
[103]
[[1起源]]です。
[104]
[[現代日本]]で[[事実上の標準]]となっている数え方です。
[SEE[ [[元号]] ]]
[REFS[
- [92] [CITE[[[日本年号史大事典]]]]
-- 普及版 (平成29年) 付3 733ページに説明あり
-- [CITE@ja-jp[[[日本年号史大事典]] 普及版 | 所 功 |本 | 通販 | Amazon]] ([TIME[2019-04-19 18:54:12 +09:00]]) <https://www.amazon.co.jp/exec/obidos/ASIN/4639024363/wakaba1-22/>
]REFS]
* #10 - 数値符号 (CLDR)
[8010]
[[CLDR]] が対応する[[日本の元号]]の通し番号です。
[107]
[[ICU]] の Japanese Calendar の実装が使っている番号です [SRC[>>106]]。
[102]
[[0起源]]です。[[白鳳]]を含み、[[北朝]]の元号のいくつかを含まない
(なぜかいくつかは含む) ため、 #14 や #15 と一致しません。
[REFS[
- [106] ([TIME[2019-04-05 12:02:12 +09:00]]) <https://www.unicode.org/repos/cldr/tags/latest/common/main/root.xml>
-
[79] ([TIME[2018-09-28 20:15:44 +09:00]]) <https://www.unicode.org/repos/cldr/tags/latest/common/main/ja.xml>
]REFS]
* #2 - 英字符号
[8002]
[[明治]]を [CODE[M]] などと[[元号名]]を[[ローマ字]]化して[[頭文字]]を取って[[記号]]とするものです。
[[平成]]は [CODE[H]]、[[令和]]は [CODE[R]]
となります。この方式は機械処理のみならず、[[人間]]による略記でもしばしば用いられます。
[FIG(table)[ [42] [[ローマ字]]先頭文字による[[元号コード]]
:元号: [[元号]]
:符号: [[符号]]
:元号: [[明治]]
:符号: [CODE[M][明治]]
:元号: [[大正]]
:符号: [CODE[T][大正]]
:元号: [[昭和]]
:符号: [CODE[S][昭和]]
:元号: [[平成]]
:符号: [CODE[H][平成]]
:元号: [[令和]]
:符号: [CODE[R][令和]]
]FIG]
[51] 明確に符号として定義される場合は[[大文字]]を使うことが多いです。
人間が[[日時形式]]の一部分として用いる場合には[[小文字]]とされることもあります。
[36] 先頭1文字で自動的に決まるので、揺れは見られません。将来的に衝突が生じた場合や、
「ち」 (chi / ti)、「じ」「ぢ」 (ji / zi / di)、「づ」 (du / zu) などから始まる[[元号]]の場合に、
揺れが生じる可能性はあります。
[71] [[令和改元]]では [CODE[R]] と [CODE[L]] の揺れの可能性がありましたが、
[TIME[発表当日][2019-05-01]]に政府に取材した媒体が[[ヘボン式]]を使うとの見解を得て記事化し、
[CODE[R]] に確定しました。
その後[[内閣官房]]の [[Webサイト]]で英語版の発表文が掲載され、
[[経済産業省]]も[[ヘボン式]]であることを明示する文書を発表しました。
[[JIS X 0301:2019]] も [CODE[R]] を採用しました。
[37] おそらく数代前の[[元号]]との衝突は避けるように制定時に配慮されるでしょうが
([SEE[ [[元号の選定]] ]])、
バリエーションが少ないのでいつまでも避け続けるのは不可能です。
[[生年月日]]や資産管理での取り扱いに使われるため、
200年程度の範囲で重複しないような配慮は続けられると考えられます。
[22] この方式は[[人間]]が関わる場合の入出力などには適していますが、
将来的な衝突の可能性や[[整列]]の便宜などを考えると数値符号の方が便利そうです。
[52] [[JIS X 0301]] の[[元号]]による[[日時]]表記でも、本方式が採用されています。
[33] [[日本政府]]の[[消費者庁]]は本方式による[[賞味期限表示]]例を示しています。
[SEE[ [[賞味期限表示]] ]]
[57] [[日時]]を扱う[[プログラミング言語]]の[[ライブラリー]]は、
本方式による出力機能を有していることがあります。
[80]
[[CLDR]] は、
[[明治]]以後を大文字1文字、
それ以前は本来表記そのままのものを[[元号]]の短い表記として採用しています
[SRC[>>79]]。
[129]
[[私年号]]の[[霊波]]や[[立教]]は、 [CODE[R]]
と省略されることがあり、
[[令和]]と衝突しています。
[[日時表示]]での利用は見られますが、
[[元号コード]]的な利用は確認されていません。
[REFS[
[FIG(quote)[
[FIGCAPTION[
[7] [CITE[備 考]]
([[鹿児島県]] 著, [TIME[2016-01-20 22:18:02 +09:00]] 版)
<https://webcache.googleusercontent.com/search?q=cache:mPa8hIVKNN8J:https://www.pref.kagoshima.jp/ah12/infra/kentiku/shidou/torihiki/syunin/documents/syuninsyatourokukisaiyouryo.pdf>
]FIGCAPTION]
> 3 「変更年月日」の欄は、最初の□には元号のコードとして「H」を記入するとともに、□に数字を記入するに当た って、空位の□に「0」を記入すること。 (記入例) H 0 5 年 1 1 月 3 0 [平成5年11月30日の場合]
]FIG]
[FIG(quote)[
[FIGCAPTION[
[8] [CITE@ja[宅地建物取引主任者関係申請・届出使用コード一覧表 - 神奈川県ホームページ]]
([TIME[2016-01-20 03:26:39 +09:00]] 版)
<http://www.pref.kanagawa.jp/cnt/f191/p15671.html>
]FIGCAPTION]
> 掲載日:2015年5月1日
> [SNIP[]]
> 元号コード
> M 明治 T 大正 S 昭和 H 平成
]FIG]
[FIG(quote)[
[FIGCAPTION[
[9] [CITE[備 考 ・]]
([TIME[2016-01-20 22:19:48 +09:00]] 版)
<https://webcache.googleusercontent.com/search?q=cache:D7eaN43fKRUJ:https://www.pref.saga.lg.jp/web/var/rev0/0189/7184/kisaigaiyou.pdf>
]FIGCAPTION]
> 「生年月 日」、 「認定年月 日J 及び 「合格年月~日」 の欄は、 最初の口には下表より該当す る元号のコードを記入すると ともに、 口に数字を記入するに当たっては、 空位の口に 「。J を記入すること『 ' (記入例) 回一0篇エ 年 0量8 月 2量3旦 M 明 治 S 昭 和 〔平成元年8月23日の場合''']''' T 大 正 H 平 成
]FIG]
[FIG(quote)[
[FIGCAPTION[
[15] [CITE@ja[公立学校施設台帳作成提要:文部科学省]]
([TIME[2015-10-01 22:19:02 +09:00]] 版)
<http://www.mext.go.jp/b_menu/hakusho/nc/t20020401009/t20020401009.html>
]FIGCAPTION]
> 元号は下記の略号で記入する。
> 平成…H
> 昭和…S
> 大正…T
> 明治…M
]FIG]
[FIG(quote)[
[FIGCAPTION[
[43] [CITE[新元号は? 昭和最後の日へタイムスリップ|NHK NEWS WEB]]
([[日本放送協会]]著, [TIME[2017-12-11 22:50:56 +09:00]])
<http://www3.nhk.or.jp/news/web_tokushu/2017_1211.html?utm_int=detail_contents_tokushu_001>
]FIGCAPTION]
> NHKはその後、元号の選定手続きでは、政府原案として「平成」のほかに、「修文(しゅうぶん)」と「正化(せいか)」という2つの案もあったと伝えています。
> さらに、コンピューターなどで、明治は「M」、大正は「T」、昭和は「S」とアルファベットの頭文字で処理もされているため、全閣僚会議では、「『修文』や『正化』では、頭文字が、昭和と同じ『S』となり、不都合なのではないか」という意見が出されたと紹介しています。
]FIG]
]REFS]
* #7 - 先頭1文字による略称
[8007]
「[[平成]]」を「平」とするような、先頭1文字による略記が用いられることがあります。
[50] 主として[[人間]]の記入の場合に使われます。
[54] [[文書番号]]に組み込まれた[[年]]部分で使われることもあります。
[55] [[JIS X 0301]] の[[元号]]による[[日時]]表現でも使われています。
[SEE[ [[JIS X 0301]] ]]
[58] [[日時]]を扱う[[プログラミング言語]]の[[ライブラリー]]は、
本方式による出力機能を有していることがあります。
[86] 戸籍システムの仕様書では (システムで扱うものでなく説明文中でですが)
[[元治]]を「元」、
[[慶応]]を「慶」としています。 [SRC[>>53]]
[124]
[[日本]]の[[国立国会図書館]]の書誌情報の日付欄の表記はいろいろなものが混在していますが、
「明44,大4」
のように略記したものもみられます。
[82]
[[元号]]からの類推で[[西暦]] ([[AD]]) の略号を「A」
とするシステムもあるようです。
しかし[[人間]]にとってこの略記は一般的ではなく、
「A2019」のように記載しても理解してもらえる可能性は低いとみられます。
[REFS[
- [146]
[CITE[代理人選任届 - ininjou re.pdf]], [TIME[2020-08-31T04:30:10.000Z]], [TIME[2021-02-05T03:52:41.385Z]] <http://www.city.tenri.nara.jp/ikkrwebBrowse/material/files/group/24/ininjou%20re.pdf>
-- 記入欄「[L[明・大・昭・平・令・西 年 月 日生]]」
]REFS]
* #3、#11、#12、#13、#21、#22、#23 - 文字コード
[FIG(table)[ [113] [[元号合字]]
:元号: [[元号]]
:#3: #3
:#13: #13
:#22: #22
:#23: #23
:#21: #21
:#11: #11
:#12: #12
:元号: [[明治]]
:#3: [CODE[U+337E]]
[CODE(charname)@en[SQUARE ERA NAME MEIZI]]
([CODE[㍾]])
:#11: [N[7621]]
:#12: [N[12041]]
:#13: [N[0x878D]]
:#14: [N[244]]
:#15: [N[228]]
:#21: [N[0x87E5]]
:#22: 1-13-77
:#23: [N[0xE8DB]]
:元号: [[大正]]
:#3: [CODE[U+337D]]
[CODE(charname)@en[SQUARE ERA NAME TAISYOU]]
([CODE[㍽]])
:#10: [N[233]]
:#11: [N[7622]]
:#12: [N[12042]]
:#13: [N[0x878E]]
:#14: [N[245]]
:#15: [N[229]]