| 1 |
Temporal adjustInto(Temporal temporal) |
調整指定的時態對象以獲得此瞬間。 |
| 2 |
OffsetDateTime atOffset(ZoneOffset offset) |
將此瞬間與偏移量組合以創建OffsetDateTime。 |
| 3 |
ZonedDateTime atZone(ZoneId zone) |
將此瞬間與時區組合以創建ZonedDateTime。 |
| 4 |
int compareTo(Instant otherInstant) |
將此瞬間與指定的瞬間進行比較。 |
| 5 |
boolean equals(Object otherInstant) |
檢查此瞬間是否等於指定的瞬間。 |
| 6 |
static Instant from(TemporalAccessor temporal) |
從時態對象獲取Instant的實例。 |
| 7 |
int get(TemporalField field) |
從此瞬間獲取指定字段的值作為int。 |
| 8 |
long getEpochSecond() |
獲取1970-01-01T00:00:00Z的Java紀元的秒數。 |
| 9 |
long getLong(TemporalField field) |
從此瞬間獲取指定字段的值為long。 |
| 10 |
int getNano() |
從時間線開始,獲取從第二個開始的納秒數。 |
| 11 |
int hashCode() |
返回此瞬間的哈希碼。 |
| 12 |
boolean isAfter(Instant otherInstant) |
檢查此瞬間是否在指定的瞬間之後。 |
| 13 |
boolean isBefore(Instant otherInstant) |
檢查此瞬間是否在指定的瞬間之前。 |
| 14 |
boolean isSupported(TemporalField field) |
檢查是否支持指定的字段。 |
| 15 |
boolean isSupported(TemporalUnit unit) |
檢查指定的單元是否受支持。 |
| 16 |
Instant minus(long amountToSubtract, TemporalUnit unit) |
返回此瞬間的副本,並減去指定的數量。 |
| 17 |
Instant minus(TemporalAmount amountToSubtract) |
返回此瞬間的副本,並減去指定的數量。 |
| 18 |
Instant minusMillis(long millisToSubtract) |
返回此瞬間的副本,並減去指定的持續時間(以毫秒為單位)。 |
| 19 |
Instant minusNanos(long nanosToSubtract) |
返回此瞬間的副本,並減去指定的持續時間(以納秒為單位)。 |
| 20 |
Instant minusSeconds(long secondsToSubtract) |
返回此瞬間的副本,並減去指定的持續時間(以秒為單位)。 |
| 21 |
static Instant now() |
從系統時鐘獲取當前瞬間。 |
| 22 |
static Instant now(Clock clock) |
從指定時鐘獲取當前時刻。 |
| 23 |
static Instant ofEpochMilli(long epochMilli) |
從1970-01-01T00:00:00Z的紀元中使用毫秒獲得Instant的實例。 |
| 24 |
static Instant ofEpochSecond(long epochSecond) |
使用1970-01-01T00:00:00Z時代的秒數獲得Instant的實例。 |
| 25 |
static Instant ofEpochSecond(long epochSecond, long nanoAdjustment) |
使用1970-01-01T00:00:00Z和納秒級秒的秒數獲得Instant的實例。 |
| 26 |
static Instant parse(CharSequence text) |
從文本字串中獲取Instant的實例,例如2007-12-03T10:15:30.00Z。 |
| 27 |
Instant plus(long amountToAdd, TemporalUnit unit) |
返回此瞬間的副本,並添加指定的數量。 |
| 28 |
Instant plus(TemporalAmount amountToAdd) |
返回此瞬間的副本,並添加指定的數量。 |
| 29 |
Instant plusMillis(long millisToAdd) |
返回此瞬間的副本,並添加指定的持續時間(以毫秒為單位)。 |
| 30 |
Instant plusNanos(long nanosToAdd) |
返回此瞬間的副本,並添加指定的持續時間(以納秒為單位)。 |
| 31 |
Instant plusSeconds(long secondsToAdd) |
返回此瞬間的副本,並添加指定的持續時間(以秒為單位)。 |
| 32 |
R query(TemporalQuery query) |
使用指定的查詢查詢此瞬間。 |
| 33 |
ValueRange range(TemporalField field) |
獲取指定字段的有效值範圍。 |
| 34 |
long toEpochMilli() |
將此瞬間轉換為1970-01-01T00:00:00Z時代的毫秒數。 |
| 35 |
String toString() |
使用ISO-8601表示的此瞬間的字串表示。 |
| 36 |
Instant truncatedTo(TemporalUnit unit) |
將截斷的Instant的副本返回到指定的單位。 |
| 37 |
long until(Temporal endExclusive, TemporalUnit unit) |
根據指定的單位計算到另一個瞬間的時間量。 |
| 38 |
Instant with(TemporalAdjuster adjuster) |
返回此瞬間的調整副本。 |
| 39 |
Instant with(TemporalField field, long newValue) |
返回此瞬間的副本,並將指定的字段設置為新值。 |