fork(1) download
  1. import java.time.Instant;
  2.  
  3. public class Main {
  4. public static void main(String[] args) {
  5. System.out.println(Instant.parse("2021-06-17T05:37:40.1938687+05:30"));
  6. System.out.println(Instant.parse("2021-06-16T19:07:40.1938687-05:00"));
  7. }
  8. }
Success #stdin #stdout 0.1s 50752KB
stdin
Standard input is empty
stdout
2021-06-17T00:07:40.193868700Z
2021-06-17T00:07:40.193868700Z