Forums: Open Discussion (Thread #22889)

明治のstartDateについて (2009-05-28 21:15 by kidotaka #44049)

DateUtilやsystem.propertiesなどで、明治の開始日を1868/09/08にしていますが、
1868/01/25にしてない理由って何かありますでしょうか?

以下の記事にあるようにJapaneseImperialCalendarは明治の開始日がおかしいのですが、
Terasolunaで書いてる1968/09/08はどこにも出典が見つからないです。
http://itpro.nikkeibp.co.jp/article/COLUMN/20071102/286289/

Reply to #44049×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 明治のstartDateについて (2009-05-29 09:40 by hachihachi #44065)

おそらくこれかなと
http://ja.wikipedia.org/wiki/%E6%98%8E%E6%B2%BB

改元の詔書が出された日が9月8日ですが、
これは旧暦なのでこの日を指しているとすると1868/09/08ではなく1868/10/23ですね。
しかも旧暦の1月1日遡って適用とあるので、
ご指摘のとおり1868/01/25とするのが正しいです。

次回リリース時には修正されると思います。
それまでは直接 system.properties の値を修正してご利用ください。
Reply to #44049

Reply to #44065×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: 明治のstartDateについて (2009-06-03 09:45 by kidotaka #44157)

system.propertiesの件、了解しました。

余談ですが、<JRE_HOME>/lib/calendar.propertiesを直せば、JapaneseImperialCalendarも1868/01/25に変えられるみたいです。
Reply to #44065

Reply to #44157×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login