java.time.ZonedDateTimeクラス
前書き
ザ・ java.time.ZonedDateTime classは、2007-12-03T10:15:30 + 01:00 Europe / Parisなど、ISO-8601カレンダーシステムのタイムゾーンを持つ日時を表します。
クラス宣言
以下はの宣言です java.time.ZonedDateTime クラス-
public final class ZonedDateTime
   extends Object
      implements Temporal, ChronoZonedDateTime<LocalDate>, Serializableクラスメソッド
| シニア番号 | 方法と説明 | 
|---|---|
| 1 | boolean equals(Object obj) この日時が別の日時と等しいかどうかを確認します。 | 
| 2 | 文字列フォーマット(DateTimeFormatterフォーマッター) 指定されたフォーマッタを使用して、この日時をフォーマットします。 | 
| 3 | static ZonedDateTime from(TemporalAccessortemporal) 一時オブジェクトからZonedDateTimeのインスタンスを取得します。 | 
| 4 | int get(TemporalFieldフィールド) この日時から指定されたフィールドの値をintとして取得します。 | 
| 5 | int getDayOfMonth() 日フィールドを取得します。 | 
| 6 | DayOfWeek getDayOfWeek() 列挙型DayOfWeekである曜日フィールドを取得します。 | 
| 7 | int getDayOfYear() 曜日フィールドを取得します。 | 
| 8 | int getHour() 時刻フィールドを取得します。 | 
| 9 | long getLong(TemporalFieldフィールド) この日時から指定されたフィールドの値をlongとして取得します。 | 
| 10 | 月getMinute() 分フィールドを取得します。 | 
| 11 | 月getMonth() 月の列挙型を使用して月のフィールドを取得します。 | 
| 12 | int getMonthValue() 1から12までの月のフィールドを取得します。 | 
| 13 | int getNano() nano-of-secondフィールドを取得します。 | 
| 14 | ZoneOffset getOffset() '+01:00'などのゾーンオフセットを取得します。 | 
| 15 | int getSecond() 分秒フィールドを取得します。 | 
| 16 | int getYear() 年フィールドを取得します。 | 
| 17 | ZoneId getZone() 'Europe / Paris'などのタイムゾーンを取得します。 | 
| 18 | int hashCode() この日時のハッシュコード。 | 
| 19 | boolean isSupported(TemporalFieldフィールド) 指定されたフィールドがサポートされているかどうかを確認します。 | 
| 20 | boolean isSupported(TemporalUnit unit) 指定されたユニットがサポートされているかどうかを確認します。 | 
| 21 | ZonedDateTimeマイナス(long amountToSubtract、TemporalUnit unit) 指定された金額を差し引いた、この日時のコピーを返します。 | 
| 22 | ZonedDateTimeマイナス(TemporalAmountamountToSubtract) 指定された金額を差し引いた、この日時のコピーを返します。 | 
| 23 | ZonedDateTimeマイナス日(longdaysToSubtract) 指定された日数を差し引いた、このZonedDateTimeのコピーを返します。 | 
| 24 | ZonedDateTimeマイナス時間(longhoursToSubtract) 指定された時間数を差し引いた、このZonedDateTimeのコピーを返します。 | 
| 25 | ZonedDateTimeマイナス分(longminutesToSubtract) 指定された分数を差し引いた、このZonedDateTimeのコピーを返します。 | 
| 26 | ZonedDateTimeマイナス月(長いmonthsToSubtract) 指定された月数を差し引いた、このZonedDateTimeのコピーを返します。 | 
| 27 | ZonedDateTimeマイナスナノス(ロングナノス) 指定されたナノ秒数を差し引いた、このZonedDateTimeのコピーを返します。 | 
| 28 | ZonedDateTimeマイナス秒(長い秒) 指定された秒数を差し引いたこのZonedDateTimeのコピーを返します。 | 
| 29 | ZonedDateTimeマイナスウィーク(長いweeksToSubtract) 指定された週数を差し引いた、このZonedDateTimeのコピーを返します。 | 
| 30 | ZonedDateTimeマイナス年(longyearsToSubtract) 指定された年数を差し引いた、このZonedDateTimeのコピーを返します。 | 
| 31 | static ZonedDateTime now() デフォルトのタイムゾーンでシステムクロックから現在の日時を取得します。 | 
| 32 | static ZonedDateTime now(クロッククロック) 指定された時計から現在の日時を取得します。 | 
| 33 | static ZonedDateTime now(ZoneId zone) 指定されたタイムゾーンのシステムクロックから現在の日時を取得します。 | 
| 34 | static ZonedDateTime of(int year、int month、int dayOfMonth、int hour、int minutes、int second、int nanoOfSecond、ZoneId zone) 年、月、日、時、分、秒、ナノ秒、およびタイムゾーンからZonedDateTimeのインスタンスを取得します。 | 
| 35 | static ZonedDateTime of(LocalDate date、LocalTime time、ZoneId zone) 日付と時刻からZonedDateTimeのインスタンスを取得します。 | 
| 36 | static ZonedDateTime of(LocalDateTime date、ZoneId zone) ローカル日時からZonedDateTimeのインスタンスを取得します。 | 
| 37 | static ZonedDateTime ofInstant(インスタントインスタント、ZoneIdゾーン) InstantおよびゾーンIDからZonedDateTimeのインスタンスを取得します。 | 
| 38 | static ZonedDateTime ofInstant(LocalDateTime localDateTime、ZoneOffset offset、ZoneId zone) ローカル日時とオフセットを組み合わせて形成されたインスタントからZonedDateTimeのインスタンスを取得します。 | 
| 39 | static ZonedDateTime ofLocal(LocalDateTime localDateTime、ZoneId zone、ZoneOffset PreferredOffset) 可能であれば、優先オフセットを使用して、ローカル日時からZonedDateTimeのインスタンスを取得します。 | 
| 40 | static ZonedDateTime ofStrict(LocalDateTime localDateTime、ZoneOffset offset、ZoneId zone) ローカル日時、オフセット、およびゾーンIDの組み合わせを厳密に検証するZonedDateTimeのインスタンスを取得します。 | 
| 41 | static ZonedDateTime parse(CharSequence text) 2007-12-03T10:15:30 + 01:00 [Europe / Paris]などのテキスト文字列からZonedDateTimeのインスタンスを取得します。 | 
| 42 | static ZonedDateTime parse(CharSequence text、DateTimeFormatter formatter) 特定のフォーマッターを使用して、テキスト文字列からZonedDateTimeのインスタンスを取得します。 | 
| 43 | ZonedDateTime plus(long amountToAdd、TemporalUnit unit) 指定された金額が追加されたこの日時のコピーを返します。 | 
| 44 | ZonedDateTime plus(TemporalAmount amountToAdd) 指定された金額が追加されたこの日時のコピーを返します。 | 
| 45 | ZonedDateTime plusDays(long daysToAdd) 指定された日数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 46 | ZonedDateTime plusHours(long hoursToAdd) 指定された時間数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 47 | ZonedDateTime plusMinutes(long minutesToAdd) 指定された分数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 48 | ZonedDateTime plusMonths(long monthsToAdd) 指定された月数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 49 | ZonedDateTime plusNanos(long nanos) 指定されたナノ秒数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 50 | ZonedDateTime plusSeconds(長い秒) 指定された秒数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 51 | ZonedDateTime plusWeeks(long weeksToAdd) 指定された週数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 52 | ZonedDateTime plusYears(long yearsToAdd) 指定された年数が追加されたこのZonedDateTimeのコピーを返します。 | 
| 53 | 指定されたクエリを使用して、この日時をクエリします。 | 
| 54 | ValueRange範囲(TemporalFieldフィールド) 指定されたフィールドの有効な値の範囲を取得します。 | 
| 55 | LocalDate toLocalDate() この日時のLocalDate部分を取得します。 | 
| 56 | LocalTime toLocalTime() この日時のLocalTime部分を取得します。 | 
| 57 | OffsetDateTime toOffsetDateTime() この日時をOffsetDateTimeに変換します。 | 
| 58 | 文字列toString() この日付を文字列として出力します(2007-12-03T10:15:30 + 01:00 [Europe / Paris]など)。 | 
| 59 | ZonedDateTime切り捨てTo(TemporalUnitユニット) このZonedDateTimeのコピーを時間を切り捨てて返します。 | 
| 60 | long until(Temporal endExclusive、TemporalUnit unit) 指定された単位で、別の日時までの時間を計算します。 | 
| 61 | ZonedDateTime with(TemporalAdjusterアジャスター) この日時の調整されたコピーを返します。 | 
| 62 | ZonedDateTime with(TemporalField field、long newValue) 指定されたフィールドが新しい値に設定された、この日時のコピーを返します。 | 
| 63 | ZonedDateTime withDayOfMonth(int dayOfMonth) 月の日が変更されたこのZonedDateTimeのコピーを返します。 | 
| 64 | ZonedDateTime withDayOfYear(int dayOfYear) 曜日が変更されたこのZonedDateTimeのコピーを返します。 | 
| 65 | ZonedDateTime withEarlierOffsetAtOverlap() この日時のコピーを返し、ローカルタイムラインのオーバーラップでゾーンオフセットを2つの有効なオフセットの早い方に変更します。 | 
| 66 | ZonedDateTime withFixedOffsetZone() ゾーンIDがオフセットに設定されたこの日時のコピーを返します。 | 
| 67 | ZonedDateTime withHour(int hour) 時刻が変更されたこのZonedDateTimeのコピーを返します。 | 
| 68 | ZonedDateTime withLaterOffsetAtOverlap() この日時のコピーを返し、ローカルタイムラインのオーバーラップでゾーンオフセットを2つの有効なオフセットの遅い方に変更します。 | 
| 69 | ZonedDateTime withMinute(int minutes) 分が変更されたこのZonedDateTimeのコピーを返します。 | 
| 70 | ZonedDateTime withMonth(int month) 月が変更されたこのZonedDateTimeのコピーを返します。 | 
| 71 | ZonedDateTime withNano(int nanoOfSecond) nano-of-secondが変更されたこのZonedDateTimeのコピーを返します。 | 
| 72 | ZonedDateTime withSecond(int second) 分秒が変更されたこのZonedDateTimeのコピーを返します。 | 
| 73 | ZonedDateTime withYear(int year) 年が変更されたこのZonedDateTimeのコピーを返します。 | 
| 74 | ZonedDateTime withZoneSameInstant(ZoneIdゾーン) インスタントを保持したまま、異なるタイムゾーンでこの日時のコピーを返します。 | 
| 75 | ZonedDateTime withZoneSameLocal(ZoneIdゾーン) 可能であればローカルの日時を保持しながら、異なるタイムゾーンでこの日時のコピーを返します。 | 
継承されたメソッド
このクラスは、次のクラスからメソッドを継承します-
- Java.lang.Object