fork(28) download
  1. import java.time.Instant;
  2. import java.time.OffsetDateTime;
  3. import java.time.ZonedDateTime;
  4.  
  5. public class Main {
  6. public static void main(String[] args) {
  7. Instant instant = Instant.parse("2013-09-29T18:46:19Z");
  8. OffsetDateTime odt = OffsetDateTime.parse("2013-09-29T18:46:19Z");
  9. ZonedDateTime zdt = ZonedDateTime.parse("2013-09-29T18:46:19Z");
  10.  
  11. System.out.println(instant);
  12. System.out.println(odt);
  13. System.out.println(zdt);
  14. }
  15. }
Success #stdin #stdout 0.09s 49224KB
stdin
Standard input is empty
stdout
2013-09-29T18:46:19Z
2013-09-29T18:46:19Z
2013-09-29T18:46:19Z