| パッケージ | 説明 | 
|---|---|
| java.nio.file.attribute | 
 ファイルおよびファイル・システム属性へのアクセスを提供するインタフェースとクラスです。 
 | 
| java.sql | 
 JavaTMプログラミング言語を使用してデータ・ソース(通常はリレーショナル・データベース)に格納されたデータにアクセスして処理するAPIを提供します。 
 | 
| java.time | 
 
 日付、時間、インスタント、デュレーションのメインAPI。 
 | 
| java.time.chrono | 
 
 デフォルトのISO暦以外の暦体系の汎用API。 
 | 
| java.time.zone | 
 
 タイムゾーンおよびそのルールのサポート。 
 | 
| java.util | 
 コレクション・フレームワーク、レガシー・コレクション・クラス、イベント・モデル、日時機能、国際化、およびさまざまなユーティリティ・クラス(StringTokenizer、乱数ジェネレータ、およびビット配列)が含まれています。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
Instant | 
FileTime.toInstant()
この 
FileTimeオブジェクトをInstantに変換します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static FileTime | 
FileTime.from(Instant instant)
時系列上で、指定された 
Instantオブジェクトと同じ時点の値を表すFileTimeを返します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
Instant | 
Time.toInstant()
このメソッドは常にUnsupportedOperationExceptionをスローします。SQL  
TIME値は日付コンポーネントを持たないので、このメソッドは使わないでください。 | 
Instant | 
Timestamp.toInstant()
この 
TimestampオブジェクトをInstantに変換します。 | 
Instant | 
Date.toInstant()
このメソッドは常にUnsupportedOperationExceptionをスローします。SQL  
Date値は時間コンポーネントを持たないので、このメソッドは使わないでください。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static Timestamp | 
Timestamp.from(Instant instant)
InstantオブジェクトからTimestampのインスタンスを取得します。 | 
| 修飾子と型 | フィールドと説明 | 
|---|---|
static Instant | 
Instant.EPOCH
1970-01-01T00:00:00Zエポック・インスタントの定数。 
 | 
static Instant | 
Instant.MAX
サポートされる最大 
Instant、1000000000-12-31T23:59:59.999999999Z。 | 
static Instant | 
Instant.MIN
サポートされる最小 
Instant、-1000000000-01-01T00:00Z。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static Instant | 
Instant.from(TemporalAccessor temporal)
Instantのインスタンスを時間的オブジェクトから取得します。 | 
abstract Instant | 
Clock.instant()
クロックの現在の時点を取得します。 
 | 
Instant | 
Instant.minus(long amountToSubtract, TemporalUnit unit)
このインスタントのコピーから指定された量を引いたものを返します。 
 | 
Instant | 
Instant.minus(TemporalAmount amountToSubtract)
このインスタントのコピーから指定された量を引いたものを返します。 
 | 
Instant | 
Instant.minusMillis(long millisToSubtract)
このインスタントのコピーから指定されたミリ秒単位デュレーションを引いたものを返します。 
 | 
Instant | 
Instant.minusNanos(long nanosToSubtract)
このインスタントのコピーから指定されたナノ秒単位デュレーションを引いたものを返します。 
 | 
Instant | 
Instant.minusSeconds(long secondsToSubtract)
このインスタントのコピーから指定された秒単位デュレーションを引いたものを返します。 
 | 
static Instant | 
Instant.now()
システム・クロックから現在のインスタントを取得します。 
 | 
static Instant | 
Instant.now(Clock clock)
指定されたクロックから現在のインスタントを取得します。 
 | 
static Instant | 
Instant.ofEpochMilli(long epochMilli)
Instantのインスタンスをエポック1970-01-01T00:00:00Zからのミリ秒数を使用して取得します。 | 
static Instant | 
Instant.ofEpochSecond(long epochSecond)
Instantのインスタンスをエポック1970-01-01T00:00:00Zからの秒数を使用して取得します。 | 
static Instant | 
Instant.ofEpochSecond(long epochSecond, long nanoAdjustment)
Instantのインスタンスをエポック1970-01-01T00:00:00Zからの秒数と秒のナノ秒部分を使用して取得します。 | 
static Instant | 
Instant.parse(CharSequence text)
Instantのインスタンスをテキスト文字列(2007-12-03T10:15:30.00Zなど)から取得します。 | 
Instant | 
Instant.plus(long amountToAdd, TemporalUnit unit)
このインスタントのコピーに指定された量を加算したものを返します。 
 | 
Instant | 
Instant.plus(TemporalAmount amountToAdd)
このインスタントのコピーに指定された量を加算したものを返します。 
 | 
Instant | 
Instant.plusMillis(long millisToAdd)
このインスタントのコピーに指定されたミリ秒単位デュレーションを加算したものを返します。 
 | 
Instant | 
Instant.plusNanos(long nanosToAdd)
このインスタントのコピーに指定されたナノ秒単位デュレーションを加算したものを返します。 
 | 
Instant | 
Instant.plusSeconds(long secondsToAdd)
このインスタントのコピーに指定された秒単位デュレーションを加算したものを返します。 
 | 
Instant | 
OffsetDateTime.toInstant()
この日付/時間を 
Instantに変換します。 | 
Instant | 
Instant.truncatedTo(TemporalUnit unit)
指定された単位に切り捨てられた状態で、この 
Instantのコピーを返します。 | 
Instant | 
Instant.with(TemporalAdjuster adjuster)
このインスタントの調整済コピーを返します。 
 | 
Instant | 
Instant.with(TemporalField field, long newValue)
指定されたフィールドを新しい値に設定した状態で、このインスタントのコピーを返します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
int | 
Instant.compareTo(Instant otherInstant)
このインスタントと指定されたインスタントを比較します。 
 | 
static Clock | 
Clock.fixed(Instant fixedInstant, ZoneId zone)
常に同じインスタントを返すクロックを取得します。 
 | 
boolean | 
Instant.isAfter(Instant otherInstant)
このインスタントが指定されたインスタントの後かどうかをチェックします。 
 | 
boolean | 
Instant.isBefore(Instant otherInstant)
このインスタントが指定されたインスタントの前かどうかをチェックします。 
 | 
static OffsetTime | 
OffsetTime.ofInstant(Instant instant, ZoneId zone)
InstantおよびゾーンIDからOffsetTimeのインスタンスを取得します。 | 
static OffsetDateTime | 
OffsetDateTime.ofInstant(Instant instant, ZoneId zone)
InstantおよびゾーンIDからOffsetDateTimeのインスタンスを取得します。 | 
static LocalDateTime | 
LocalDateTime.ofInstant(Instant instant, ZoneId zone)
InstantおよびゾーンIDからLocalDateTimeのインスタンスを取得します。 | 
static ZonedDateTime | 
ZonedDateTime.ofInstant(Instant instant, ZoneId zone)
InstantからZonedDateTimeのインスタンスを取得します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
default Instant | 
ChronoZonedDateTime.toInstant()
この日付/時間を 
Instantに変換します。 | 
default Instant | 
ChronoLocalDateTime.toInstant(ZoneOffset offset)
この日付/時間を 
Instantに変換します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
ZonedDateTime | 
IsoChronology.zonedDateTime(Instant instant, ZoneId zone)
Instantからこの暦でISOのゾーン付きの日付/時間を取得します。 | 
default ChronoZonedDateTime<? extends ChronoLocalDate> | 
Chronology.zonedDateTime(Instant instant, ZoneId zone)
Instantからこの暦でChronoZonedDateTimeを取得します。 | 
ChronoZonedDateTime<ThaiBuddhistDate> | 
ThaiBuddhistChronology.zonedDateTime(Instant instant, ZoneId zone)  | 
ChronoZonedDateTime<JapaneseDate> | 
JapaneseChronology.zonedDateTime(Instant instant, ZoneId zone)  | 
ChronoZonedDateTime<MinguoDate> | 
MinguoChronology.zonedDateTime(Instant instant, ZoneId zone)  | 
ChronoZonedDateTime<HijrahDate> | 
HijrahChronology.zonedDateTime(Instant instant, ZoneId zone)  | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
Instant | 
ZoneOffsetTransition.getInstant()
遷移インスタントを取得します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
Duration | 
ZoneRules.getDaylightSavings(Instant instant)
このゾーンの指定されたインスタントに使用しているサマー・タイムの量を取得します。 
 | 
ZoneOffset | 
ZoneRules.getOffset(Instant instant)
これらのルールで、指定されたインスタントに適用できるオフセットを取得します。 
 | 
ZoneOffset | 
ZoneRules.getStandardOffset(Instant instant)
このゾーンでの指定されたインスタントの標準オフセットを取得します。 
 | 
boolean | 
ZoneRules.isDaylightSavings(Instant instant)
指定されたインスタントがサマー・タイムにあるかどうかを確認します。 
 | 
ZoneOffsetTransition | 
ZoneRules.nextTransition(Instant instant)
指定されたインスタント後の次の遷移を取得します。 
 | 
ZoneOffsetTransition | 
ZoneRules.previousTransition(Instant instant)
指定されたインスタント前の前の遷移を取得します。 
 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
Instant | 
Calendar.toInstant()
このオブジェクトを 
Instantに変換します。 | 
Instant | 
Date.toInstant()
この 
DateオブジェクトをInstantに変換します。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
static Date | 
Date.from(Instant instant)
InstantオブジェクトからDateのインスタンスを取得します。 | 
 バグまたは機能を送信 
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
 Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.