LocalTime toSecondOfDay() method in Java with Examples
The toSecondOfDay() method of LocalTime class is used to return the time as seconds of day from this LocalTime.Value returned by this method lie between 0 to 24 * 60 * 60 – 1.
public int toSecondOfDay()
Parameters: This method accepts no parameters.
Return value: This method returns a the long value which is the second of day value and is equivalent to this time.
Below programs illustrate the toSecondOfDay() method:
Second of day: 70490
Second of day: 84105