日付、時間、インスタント、デュレーションのメインAPI。
-
この年を月と組み合せてYearMonth
を作成します。
この年を月と組み合せてYearMonth
を作成します。
時間的オブジェクトからYearMonth
のインスタンスを取得します。
指定された量を減算した、この年-月のコピーを返します。
指定された量を減算した、この年-月のコピーを返します。
指定された月数を減算した、このYearMonth
のコピーを返します。
指定された年数を減算した、このYearMonth
のコピーを返します。
デフォルトのタイムゾーンのシステム・クロックから現在の年-月を取得します。
指定されたタイムゾーンのシステム・クロックから現在の年-月を取得します。
YearMonth.of(int year, int month)
年および月からYearMonth
のインスタンスを取得します。
YearMonth.of(int year, Month month)
年および月からYearMonth
のインスタンスを取得します。
2007-12
などのテキスト文字列からYearMonth
のインスタンスを取得します。
特定のフォーマッタを使用して、テキスト文字列からYearMonth
のインスタンスを取得します。
この年月のコピーに指定された時間を追加したものを返します。
この年月のコピーに指定された時間を追加したものを返します。
指定された月数を加算した、このYearMonth
のコピーを返します。
指定された年数を加算した、このYearMonth
のコピーを返します。
指定されたフィールドを新しい値に設定して、この年と月のコピーを返します。
月を変更して、このYearMonth
のコピーを返します。
年を変更して、このYearMonth
のコピーを返します。
int
boolean
この年/月が、指定された年/月より後にあるかどうかをチェックします。
boolean
この年/月が、指定された年/月より前にあるかどうかをチェックします。