Instant MAX
defines the maximum supported Instant,
'1000000000-12-31T23:59:59.999999999Z' is the value.
MAX
has the following syntax.
public static final Instant MAX
The following example shows how to use MAX
.
import java.time.Instant; public class Main { public static void main(String[] args) { Instant instant = Instant.MAX; System.out.println(instant.getEpochSecond()); } }
The code above generates the following result.