LocalDateTime MAX
defines the maximum supported LocalDateTime,
'+999999999-12-31T23:59:59.999999999'.
This is the local date-time just before midnight at the end of the maximum date.
MAX
has the following syntax.
public static final LocalDateTime MAX
The following example shows how to use MAX
.
import java.time.LocalDateTime; public class Main { public static void main(String[] args) { LocalDateTime a = LocalDateTime.MAX; System.out.println(a); } }
The code above generates the following result.