2014-12-03から1日間の記事一覧
new DateでDateオブジェクトを作ろうとしたらDeprecatedだよ、とIDEに怒られた。 以下のようにCalendarを使うのが正しいらしい。 new GregorianCalendar(2015, 0, 14, 15, 33, 54).getTime() 参考: Java: Why is Date deprecated, and what do I use instea…
new DateでDateオブジェクトを作ろうとしたらDeprecatedだよ、とIDEに怒られた。 以下のようにCalendarを使うのが正しいらしい。 new GregorianCalendar(2015, 0, 14, 15, 33, 54).getTime() 参考: Java: Why is Date deprecated, and what do I use instea…