toInstant
toInstant converts the supplied variables into an instant.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| date | LocalDate | The local date. |
| time | LocalTime | The local time. |
| timeZone | ZoneId | The time zone. |
| dateTime | ZonedDateTime | The zoned date-time to convert. |
Returns
An Instant.