LocalTime MAX
defines the maximum supported LocalTime, '23:59:59.999999999'.
This is the time just before midnight at the end of the day.
MAX
has the following syntax.
public static final LocalTime MAX
The following example shows how to use MAX
.
import java.time.LocalTime; public class Main { public static void main(String[] args) { LocalTime l = LocalTime.MAX; System.out.println(l); } }
The code above generates the following result.