secondOfDay
secondOfDay returns the number of seconds that have elapsed since the top of the day (midnight) for the specified date-time.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| instant | Instant | The date-time from which to return the number of seconds. |
| timeZone | ZoneId | The time zone. |
| dateTime | ZonedDateTime | The date-time from which to return the number of seconds. |
| 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 number of seconds. |
| localTime | LocalTime | The local time from which to return the number of seconds. |
Returns
The specified date-time converted into seconds. Null input values will return NULL_INT.