public abstract class InstantUtils extends Object
| 构造器和说明 |
|---|
InstantUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static java.time.Instant |
toInstant(Calendar calendar) |
static java.time.Instant |
toInstant(Calendar calendar,
java.time.Instant defaultValue) |
static java.time.Instant |
toInstant(Date date) |
static java.time.Instant |
toInstant(Date date,
java.time.Instant defaultValue) |
static java.time.Instant |
toInstant(java.time.LocalDate ld) |
static java.time.Instant |
toInstant(java.time.LocalDateTime ldt) |
static java.time.Instant |
toInstant(java.time.LocalDateTime ldt,
java.time.ZoneId zoneId) |
static java.time.Instant |
toInstant(java.time.LocalDateTime ldt,
java.time.ZoneId zoneId,
java.time.Instant defaultValue) |
static java.time.Instant |
toInstant(java.time.LocalDate ld,
java.time.ZoneId zoneId) |
static java.time.Instant |
toInstant(java.time.LocalDate ld,
java.time.ZoneId zoneId,
java.time.Instant defaultValue) |
static java.time.Instant |
toInstant(Long timeInMs) |
static java.time.Instant |
toInstant(Long timeInMs,
java.time.Instant defaultValue) |
public static java.time.Instant toInstant(Long timeInMs)
public static java.time.Instant toInstant(Long timeInMs, java.time.Instant defaultValue)
public static java.time.Instant toInstant(Date date)
public static java.time.Instant toInstant(Date date, java.time.Instant defaultValue)
public static java.time.Instant toInstant(Calendar calendar)
public static java.time.Instant toInstant(Calendar calendar, java.time.Instant defaultValue)
public static java.time.Instant toInstant(java.time.LocalDateTime ldt)
public static java.time.Instant toInstant(java.time.LocalDateTime ldt,
java.time.ZoneId zoneId)
public static java.time.Instant toInstant(java.time.LocalDateTime ldt,
java.time.ZoneId zoneId,
java.time.Instant defaultValue)
public static java.time.Instant toInstant(java.time.LocalDate ld)
public static java.time.Instant toInstant(java.time.LocalDate ld,
java.time.ZoneId zoneId)
public static java.time.Instant toInstant(java.time.LocalDate ld,
java.time.ZoneId zoneId,
java.time.Instant defaultValue)
Copyright © 2022. All rights reserved.