インタフェース
java.time.temporal.TemporalAccessorの使用
-
TemporalAccessorを使用しているパッケージ パッケージ 説明 java.time 日付、時間、インスタント、デュレーションのメインAPI。java.time.chrono デフォルトのISO暦以外の暦体系の汎用API。java.time.format 日付と時間を出力し、解析するクラスを提供します。java.time.temporal フィールドと単位を使用した日時へのアクセス、および日時アジャスタ。 -
-
java.timeでのTemporalAccessorの使用
TemporalAccessorを実装するjava.timeのクラス 修飾子と型 クラス 説明 classDayOfWeek「曜日」(「Tuesday」など)。classInstant時系列の時点。classLocalDateISO-8601暦体系のタイムゾーンのない日付、2007-12-03など。classLocalDateTimeISO-8601暦体系のタイムゾーンのない日付/時間、2007-12-03T10:15:30など。classLocalTimeISO-8601暦体系における、タイムゾーンのない時間(10:15:30など)。classMonth「月」(「July」など)。classMonthDayISO-8601暦体系における月日(--12-03など)。classOffsetDateTimeISO-8601暦体系におけるUTC/グリニッジからのオフセット付きの日時(2007-12-03T10:15:30+01:00など)。classOffsetTimeISO-8601暦体系におけるUTC/グリニッジからのオフセット付きの時間(10:15:30+01:00など)。classYearISO-8601暦体系における年(2007など)。classYearMonthISO-8601暦体系における年月(2007-12など)。classZonedDateTimeISO-8601の暦体系によるタイムゾーン付きの日付/時間です(2007-12-03T10:15:30+01:00 Europe/Parisなど)。classZoneOffsetグリニッジ/UTCからのタイムゾーン・オフセット(+02:00など)。TemporalAccessor型のパラメータを持つjava.timeのメソッド 修飾子と型 メソッド 説明 static DayOfWeekDayOfWeek. from(TemporalAccessor temporal)時間的オブジェクトからDayOfWeekのインスタンスを取得します。static InstantInstant. from(TemporalAccessor temporal)Instantのインスタンスを時間的オブジェクトから取得します。static LocalDateLocalDate. from(TemporalAccessor temporal)時間的オブジェクトからLocalDateのインスタンスを取得します。static LocalDateTimeLocalDateTime. from(TemporalAccessor temporal)時間的オブジェクトからLocalDateTimeのインスタンスを取得します。static LocalTimeLocalTime. from(TemporalAccessor temporal)時間的オブジェクトからLocalTimeのインスタンスを取得します。static MonthMonth. from(TemporalAccessor temporal)時間的オブジェクトからMonthのインスタンスを取得します。static MonthDayMonthDay. from(TemporalAccessor temporal)時間的オブジェクトからMonthDayのインスタンスを取得します。static OffsetDateTimeOffsetDateTime. from(TemporalAccessor temporal)時間的オブジェクトからOffsetDateTimeのインスタンスを取得します。static OffsetTimeOffsetTime. from(TemporalAccessor temporal)時間的オブジェクトからOffsetTimeのインスタンスを取得します。static YearYear. from(TemporalAccessor temporal)時間的オブジェクトからYearのインスタンスを取得します。static YearMonthYearMonth. from(TemporalAccessor temporal)時間的オブジェクトからYearMonthのインスタンスを取得します。static ZonedDateTimeZonedDateTime. from(TemporalAccessor temporal)時間的オブジェクトからZonedDateTimeのインスタンスを取得します。static ZoneIdZoneId. from(TemporalAccessor temporal)時間的オブジェクトからZoneIdのインスタンスを取得します。static ZoneOffsetZoneOffset. from(TemporalAccessor temporal)時間的オブジェクトからZoneOffsetのインスタンスを取得します。 -
java.time.chronoでのTemporalAccessorの使用
java.time.chronoでのTemporalAccessorのサブインタフェース 修飾子と型 インタフェース 説明 interfaceChronoLocalDate任意の暦で時またはタイム・ゾーンのない日付、高度なグローバリゼーション・ユース・ケース向けです。interfaceChronoLocalDateTime<D extends ChronoLocalDate>任意の暦のタイムゾーンのない日付/時間、高度なグローバリゼーション・ユース・ケース向けです。interfaceChronoZonedDateTime<D extends ChronoLocalDate>任意の暦のタイムゾーン付きの日付/時間、高度なグローバリゼーション・ユース・ケース向けです。interfaceEra時系列の紀元。TemporalAccessorを実装するjava.time.chronoのクラス 修飾子と型 クラス 説明 classHijrahDateヒジュラ暦体系の日付。classHijrahEraヒジュラ暦体系の紀元。classIsoEraISO暦体系の紀元。classJapaneseDate和暦体系の日付。classJapaneseEra和暦体系の紀元。classMinguoDate民国暦体系の日付。classMinguoEra民国暦体系の紀元。classThaiBuddhistDateタイ仏暦体系の日付。classThaiBuddhistEraタイ仏暦体系の紀元。TemporalAccessor型のパラメータを持つjava.time.chronoのメソッド 修飾子と型 メソッド 説明 ChronoLocalDateChronology. date(TemporalAccessor temporal)別の時間的オブジェクトから、この暦のローカル日付を取得します。LocalDateIsoChronology. date(TemporalAccessor temporal)別の日付/時間オブジェクトからISO暦のローカル日付を取得します。static ChronoLocalDateChronoLocalDate. from(TemporalAccessor temporal)一時オブジェクトからChronoLocalDateのインスタンスを取得します。static ChronoLocalDateTime<?>ChronoLocalDateTime. from(TemporalAccessor temporal)時間的オブジェクトからChronoLocalDateTimeのインスタンスを取得します。static ChronologyChronology. from(TemporalAccessor temporal)時間的オブジェクトからChronologyのインスタンスを取得します。static ChronoZonedDateTime<?>ChronoZonedDateTime. from(TemporalAccessor temporal)時間的オブジェクトからChronoZonedDateTimeのインスタンスを取得します。static HijrahDateHijrahDate. from(TemporalAccessor temporal)時間的オブジェクトからイスラム・ウム・アルクラ暦のHijrahDateを取得します。static JapaneseDateJapaneseDate. from(TemporalAccessor temporal)時間的オブジェクトからJapaneseDateを取得します。static MinguoDateMinguoDate. from(TemporalAccessor temporal)時間的オブジェクトからMinguoDateを取得します。static ThaiBuddhistDateThaiBuddhistDate. from(TemporalAccessor temporal)時間的オブジェクトからThaiBuddhistDateを取得します。default ChronoLocalDateTime<? extends ChronoLocalDate>Chronology. localDateTime(TemporalAccessor temporal)別の時間的オブジェクトから、この暦のローカル日付/時間を取得します。LocalDateTimeIsoChronology. localDateTime(TemporalAccessor temporal)別の日付/時間オブジェクトからISO暦のローカル日付/時間を取得します。default ChronoZonedDateTime<? extends ChronoLocalDate>Chronology. zonedDateTime(TemporalAccessor temporal)もう一方のtemporal (一時)オブジェクトからこの暦でChronoZonedDateTimeを取得します。ZonedDateTimeIsoChronology. zonedDateTime(TemporalAccessor temporal)もう一方の日付/時間オブジェクトからISOのゾーン付きの日付/時間を取得します。 -
java.time.formatでのTemporalAccessorの使用
TemporalAccessorを返すjava.time.formatのメソッド 修飾子と型 メソッド 説明 TemporalAccessorDateTimeFormatter. parse(CharSequence text)テキストを完全に解析して、時間的オブジェクトを生成します。TemporalAccessorDateTimeFormatter. parse(CharSequence text, ParsePosition position)このフォーマッタを使用してテキストを解析し、テキスト位置に対する制御を提供します。TemporalAccessorDateTimeFormatter. parseBest(CharSequence text, TemporalQuery<?>... queries)テキストを完全に解析して、指定されたいずれかのタイプのオブジェクトを生成します。TemporalAccessorDateTimeFormatter. parseUnresolved(CharSequence text, ParsePosition position)このフォーマッタを使用してテキストを解析しますが、高度なユース・ケース向けに、結果を解決しません。TemporalAccessor型のパラメータを持つjava.time.formatのメソッド 修飾子と型 メソッド 説明 StringDateTimeFormatter. format(TemporalAccessor temporal)このフォーマッタを使用して、日付/時間オブジェクトを書式設定します。voidDateTimeFormatter. formatTo(TemporalAccessor temporal, Appendable appendable)このフォーマッタを使用して、日付/時間オブジェクトをAppendableに書式設定します。 -
java.time.temporalでのTemporalAccessorの使用
java.time.temporalでのTemporalAccessorのサブインタフェース 修飾子と型 インタフェース 説明 interfaceTemporal時間的オブジェクト(日付、時間、オフセット、またはそれらのなんらかの組合せなど)への読取り/書込みアクセスを定義するフレームワークレベルのインタフェースです。TemporalAccessorを返すjava.time.temporalのメソッド 修飾子と型 メソッド 説明 default TemporalAccessorTemporalField. resolve(Map<TemporalField,Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)このフィールドを解決して、より簡単な代替または日付を提供します。TemporalAccessor型のパラメータを持つjava.time.temporalのメソッド 修飾子と型 メソッド 説明 longTemporalField. getFrom(TemporalAccessor temporal)指定された時間的オブジェクトからこのフィールドの値を取得します。booleanTemporalField. isSupportedBy(TemporalAccessor temporal)このフィールドが時間的オブジェクトでサポートされているかどうかを確認します。RTemporalQuery. queryFrom(TemporalAccessor temporal)指定された時間的オブジェクトを問い合せます。ValueRangeTemporalField. rangeRefinedBy(TemporalAccessor temporal)時間的オブジェクトを使用して結果を絞り込むことにより、このフィールドの有効値の範囲を取得します。default TemporalAccessorTemporalField. resolve(Map<TemporalField,Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)このフィールドを解決して、より簡単な代替または日付を提供します。
-