Checks if this instant is after the specified instant.
package com.logicbig.example.instant;
import java.time.Instant;
public class IsAfterExample {
public static void main(String... args) {
Instant i = Instant.now();
System.out.println(i);
Instant i2 = Instant.parse("2016-12-03T10:15:30.00Z");
System.out.println(i2);
boolean b = i.isAfter(i2);
System.out.println(b);
}
}
Output
2017-05-01T20:57:51.494Z
2016-12-03T10:15:30Z
true