1// Java program to demonstrate
2// Instant.parse() method
3
4import java.time.*;
5
6public class GFG {
7 public static void main(String[] args)
8 {
9
10 // get Instant using parse method
11 Instant instant
12 = Instant.parse("2018-11-30T18:35:24.00Z");
13
14 // print result
15 System.out.println("Instant: "
16 + instant);
17 }
18}
19