インタフェース
java.time.temporal.TemporalAmountの使用
-
TemporalAmountを使用しているパッケージ パッケージ 説明 java.time 日付、時間、インスタント、デュレーションのメインAPI。java.time.chrono デフォルトのISO暦以外の暦体系の汎用API。java.time.temporal フィールドと単位を使用した日時へのアクセス、および日時アジャスタ。 -
-
java.timeでのTemporalAmountの使用
TemporalAmountを実装するjava.timeのクラス 修飾子と型 クラス 説明 class
Duration
時間ベースの時間(「34.5秒」など)。class
Period
ISO-8601暦体系における日付ベースの時間の量(「2年3か月と4日」など)。TemporalAmount型のパラメータを持つjava.timeのメソッド 修飾子と型 メソッド 説明 static Duration
Duration. from(TemporalAmount amount)
時間的な量からDuration
のインスタンスを取得します。static Period
Period. from(TemporalAmount amount)
時間的な量からPeriod
のインスタンスを取得します。Instant
Instant. minus(TemporalAmount amountToSubtract)
このインスタントのコピーから指定された量を引いたものを返します。LocalDate
LocalDate. minus(TemporalAmount amountToSubtract)
指定された量を減算した、この日付のコピーを返します。LocalDateTime
LocalDateTime. minus(TemporalAmount amountToSubtract)
指定された量を減算した、この日付/時間のコピーを返します。LocalTime
LocalTime. minus(TemporalAmount amountToSubtract)
指定された量を減算して、この時間のコピーを返します。OffsetDateTime
OffsetDateTime. minus(TemporalAmount amountToSubtract)
指定された量を減算した、この日付/時間のコピーを返します。OffsetTime
OffsetTime. minus(TemporalAmount amountToSubtract)
指定された量を減算して、この時間のコピーを返します。Period
Period. minus(TemporalAmount amountToSubtract)
指定された期間を減算して、この期間のコピーを返します。Year
Year. minus(TemporalAmount amountToSubtract)
指定された量を減算して、この年のコピーを返します。YearMonth
YearMonth. minus(TemporalAmount amountToSubtract)
指定された量を減算して、この年/月のコピーを返します。ZonedDateTime
ZonedDateTime. minus(TemporalAmount amountToSubtract)
指定された量を減算した、この日付/時間のコピーを返します。Instant
Instant. plus(TemporalAmount amountToAdd)
このインスタントのコピーに指定された量を加算したものを返します。LocalDate
LocalDate. plus(TemporalAmount amountToAdd)
指定された量を加算した、この日付のコピーを返します。LocalDateTime
LocalDateTime. plus(TemporalAmount amountToAdd)
指定された量を加算した、この日付/時間のコピーを返します。LocalTime
LocalTime. plus(TemporalAmount amountToAdd)
この時刻のコピーに指定された時間を追加したものを返します。OffsetDateTime
OffsetDateTime. plus(TemporalAmount amountToAdd)
指定された量を加算した、この日付/時間のコピーを返します。OffsetTime
OffsetTime. plus(TemporalAmount amountToAdd)
この時刻のコピーに指定された時間を追加したものを返します。Period
Period. plus(TemporalAmount amountToAdd)
この期間のコピーに指定された期間を追加したものを返します。Year
Year. plus(TemporalAmount amountToAdd)
指定された量を加算して、この年のコピーを返します。YearMonth
YearMonth. plus(TemporalAmount amountToAdd)
指定された量を加算して、この年/月のコピーを返します。ZonedDateTime
ZonedDateTime. plus(TemporalAmount amountToAdd)
指定された量を加算した、この日付/時間のコピーを返します。 -
java.time.chronoでのTemporalAmountの使用
java.time.chronoでのTemporalAmountのサブインタフェース 修飾子と型 インタフェース 説明 interface
ChronoPeriod
任意の暦での「3年、4か月、5日」などの、日付ベースの時間の量、高度なグローバリゼーション・ユース・ケース向けです。TemporalAmount型のパラメータを持つjava.time.chronoのメソッド 修飾子と型 メソッド 説明 default ChronoLocalDate
ChronoLocalDate. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。default ChronoLocalDateTime<D>
ChronoLocalDateTime. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。ChronoPeriod
ChronoPeriod. minus(TemporalAmount amountToSubtract)
指定された期間を減算して、この期間のコピーを返します。default ChronoZonedDateTime<D>
ChronoZonedDateTime. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。HijrahDate
HijrahDate. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。JapaneseDate
JapaneseDate. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。MinguoDate
MinguoDate. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。ThaiBuddhistDate
ThaiBuddhistDate. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。default ChronoLocalDate
ChronoLocalDate. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。default ChronoLocalDateTime<D>
ChronoLocalDateTime. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。ChronoPeriod
ChronoPeriod. plus(TemporalAmount amountToAdd)
この期間のコピーに指定された期間を追加したものを返します。default ChronoZonedDateTime<D>
ChronoZonedDateTime. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。HijrahDate
HijrahDate. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。JapaneseDate
JapaneseDate. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。MinguoDate
MinguoDate. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。ThaiBuddhistDate
ThaiBuddhistDate. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。 -
java.time.temporalでのTemporalAmountの使用
TemporalAmount型のパラメータを持つjava.time.temporalのメソッド 修飾子と型 メソッド 説明 default Temporal
Temporal. minus(TemporalAmount amount)
量を減算して、このオブジェクトと同じ型のオブジェクトを返します。default Temporal
Temporal. plus(TemporalAmount amount)
このオブジェクトと同じ型のオブジェクトにある時間を追加したものを返します。
-