millisOfDay
millisOfDay returns the number of milliseconds since midnight for a specified date-time.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| instant | Instant | The date-time from which to return the elapsed time. |
| timeZone | ZoneId | The time zone. |
| dateTime | ZonedDateTime | The date-time from which to return the elapsed time. |
| asLocalTime | boolean | Set this parameter to
On non-DST days, the result is the same regardless of the value of |
| localDateTime | LocalDateTime | The local date-time from which to return the elapsed time. |
| localTime | LocalTime | The local time from which to return the elapsed time. |
Returns
Returns the number of milliseconds since midnight for the date-time, or NULL_INT if instant, timeZone, dateTime, localDateTime, or localTime is null.