次のようなことをしたい
private DateTime[] importantDates = {
new DateTime(2013, 6, 15, 0, 0),
new DateTime(2013, 9, 15, 0, 0)
};
year は常に現在の年です。Joda は、計算なしでこのようなことを許可しますか?
例: 現在、私たちは 2013 年に住んでいます。この値をハードコーディングしたくありません。
さらに言えば、私が本当に欲しいもの
private DateTime[] importantDates = {
new DateTime(current_year, 6, 15),
new DateTime(current_year, 9, 15),
};
これはできますか?