| パッケージ | 説明 | 
|---|---|
| java.time | 
 
 日付、時間、インスタント、デュレーションのメインAPI。 
 | 
| 修飾子と型 | フィールドと説明 | 
|---|---|
static OffsetDateTime | 
OffsetDateTime.MAX
サポートされている最大の 
OffsetDateTimeである「+999999999-12-31T23:59:59.999999999-18:00」。 | 
static OffsetDateTime | 
OffsetDateTime.MIN
サポートされている最小の 
OffsetDateTimeである「-999999999-01-01T00:00:00+18:00」。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
OffsetDateTime | 
OffsetTime.atDate(LocalDate date)
この時間を日付と組み合せて 
OffsetDateTimeを作成します。 | 
OffsetDateTime | 
Instant.atOffset(ZoneOffset offset)
このインスタントとオフセットを組み合わせて 
OffsetDateTimeを作成します。 | 
OffsetDateTime | 
LocalDateTime.atOffset(ZoneOffset offset)
この日付/時間をオフセットと組み合せて 
OffsetDateTimeを作成します。 | 
OffsetDateTime | 
LocalDate.atTime(OffsetTime time)
この日付をオフセット時間と組み合せて 
OffsetDateTimeを作成します。 | 
static OffsetDateTime | 
OffsetDateTime.from(TemporalAccessor temporal)
時間的オブジェクトから 
OffsetDateTimeのインスタンスを取得します。 | 
OffsetDateTime | 
OffsetDateTime.minus(long amountToSubtract, TemporalUnit unit)
指定された量を減算した、この日付/時間のコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.minus(TemporalAmount amountToSubtract)
指定された量を減算した、この日付/時間のコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.minusDays(long days)
指定された日数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.minusHours(long hours)
指定された時間数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.minusMinutes(long minutes)
指定された分数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.minusMonths(long months)
指定された月数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.minusNanos(long nanos)
指定されたナノ秒数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.minusSeconds(long seconds)
指定された秒数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.minusWeeks(long weeks)
指定された週数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.minusYears(long years)
指定された年数を減算した、この 
OffsetDateTimeのコピーを返します。 | 
static OffsetDateTime | 
OffsetDateTime.now()
デフォルトのタイムゾーンのシステム・クロックから現在の日付/時間を取得します。 
 | 
static OffsetDateTime | 
OffsetDateTime.now(Clock clock)
指定されたクロックから現在の日付/時間を取得します。 
 | 
static OffsetDateTime | 
OffsetDateTime.now(ZoneId zone)
指定されたタイムゾーンのシステム・クロックから現在の日付/時間を取得します。 
 | 
static OffsetDateTime | 
OffsetDateTime.of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset)
年、月、日、時、分、秒、ナノ秒、およびオフセットから 
OffsetDateTimeのインスタンスを取得します。 | 
static OffsetDateTime | 
OffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset)
日付、時間、およびオフセットから 
OffsetDateTimeのインスタンスを取得します。 | 
static OffsetDateTime | 
OffsetDateTime.of(LocalDateTime dateTime, ZoneOffset offset)
日付/時間およびオフセットから 
OffsetDateTimeのインスタンスを取得します。 | 
static OffsetDateTime | 
OffsetDateTime.ofInstant(Instant instant, ZoneId zone)
InstantおよびゾーンIDからOffsetDateTimeのインスタンスを取得します。 | 
static OffsetDateTime | 
OffsetDateTime.parse(CharSequence text)
2007-12-03T10:15:30+01:00などのテキスト文字列からOffsetDateTimeのインスタンスを取得します。 | 
static OffsetDateTime | 
OffsetDateTime.parse(CharSequence text, DateTimeFormatter formatter)
特定のフォーマッタを使用して、テキスト文字列から 
OffsetDateTimeのインスタンスを取得します。 | 
OffsetDateTime | 
OffsetDateTime.plus(long amountToAdd, TemporalUnit unit)
指定された量を加算した、この日付/時間のコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.plus(TemporalAmount amountToAdd)
指定された量を加算した、この日付/時間のコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.plusDays(long days)
指定された日数を加算した、このOffsetDateTimeのコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.plusHours(long hours)
指定された時間数を加算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.plusMinutes(long minutes)
指定された分数を加算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.plusMonths(long months)
指定された月数を加算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.plusNanos(long nanos)
指定されたナノ秒数を加算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.plusSeconds(long seconds)
指定された秒数を加算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.plusWeeks(long weeks)
指定された週数を加算した、このOffsetDateTimeのコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.plusYears(long years)
指定された年数を加算した、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
ZonedDateTime.toOffsetDateTime()
この日付/時間を 
OffsetDateTimeに変換します。 | 
OffsetDateTime | 
OffsetDateTime.truncatedTo(TemporalUnit unit)
時間が切り捨てられた、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.with(TemporalAdjuster adjuster)
この日付/時間の調整済のコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.with(TemporalField field, long newValue)
指定されたフィールドを新しい値に設定して、この日付/時間のコピーを返します。 
 | 
OffsetDateTime | 
OffsetDateTime.withDayOfMonth(int dayOfMonth)
「月の日」を変更して、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withDayOfYear(int dayOfYear)
「年の日」を変更して、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withHour(int hour)
時の値を変更して、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withMinute(int minute)
分の値を変更して、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withMonth(int month)
月を変更して、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withNano(int nanoOfSecond)
ナノ秒の値を変更して、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withOffsetSameInstant(ZoneOffset offset)
結果が同じインスタントを持つようにしながら、指定されたオフセットを使って、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withOffsetSameLocal(ZoneOffset offset)
結果がローカル日付/時間を持つようにしながら、指定されたオフセットを使って、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withSecond(int second)
秒の値を変更して、この 
OffsetDateTimeのコピーを返します。 | 
OffsetDateTime | 
OffsetDateTime.withYear(int year)
年を変更して、この 
OffsetDateTimeのコピーを返します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static Comparator<OffsetDateTime> | 
OffsetDateTime.timeLineOrder()
そのインスタントにのみ基づいて2つの 
OffsetDateTimeインスタンスを比較するコンパレータを取得します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
int | 
OffsetDateTime.compareTo(OffsetDateTime other)
この 
OffsetDateTimeをもう一方の日付/時間と比較します。 | 
boolean | 
OffsetDateTime.isAfter(OffsetDateTime other)
この日付/時間のインスタントが、指定された日付/時間のインスタントより後であるかどうかをチェックします。 
 | 
boolean | 
OffsetDateTime.isBefore(OffsetDateTime other)
この日付/時間のインスタントが、指定された日付/時間のインスタントより前であるかどうかをチェックします。 
 | 
boolean | 
OffsetDateTime.isEqual(OffsetDateTime other)
この日付/時間のインスタントが、指定された日付/時間のインスタントと等しいかどうかをチェックします。 
 | 
 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
 Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.