Additional top-level class in compilation unit: ProxyInstantConstants.
ProxyDate, ProxyTime and ProxyTimeZone.
Proxy, Value
| Modifier and Type | Method and Description |
|---|---|
| public default LocalDate | |
| public Instant | |
| public default LocalTime | |
| public default ZoneId | asTimeZone()
Implements org. Returns the timezone information. |
| public static ProxyInstant |
| asDate | back to summary |
|---|---|
| public default LocalDate asDate() Implements org. Doc from org. Returns the date information. The returned value must not be
| |
| asInstant | back to summary |
|---|---|
| public Instant asInstant() Returns the instant information. The returned value must not be ProxyInstant proxy = ... ZoneId zone = proxy.getTimeZone(); LocalDate date = proxy.getDate(); LocalTime time = proxy.getTime(); assert ZonedDateTime.of(date, time, zone).equals(proxy.getInstant());
| |
| asTime | back to summary |
|---|---|
| public default LocalTime asTime() Implements org. Doc from org. Returns the time information. The returned value must not be
| |
| asTimeZone | back to summary |
|---|---|
| public default ZoneId asTimeZone() Implements org. Doc from org. Returns the timezone information. The returned value must not be
| |
| from | back to summary |
|---|---|
| public static ProxyInstant from(Instant instant) Creates a new proxy instant from a Java instant value.
| |