Given the code fragment:
ZonedDateTime depart = ZonedDateTime.of(2015, 1, 15, 1, 0, 0, 0, ZoneID.of("UTC-7"));
ZonedDateTime arrive = ZonedDateTime.of(2015, 1, 15, 9, 0, 0, 0, ZoneID.of("UTC-5")); long hrs = ChronoUnit.HOURS.between(depart, arrive); //line n1
System.out.println("Travel time is" + hrs + "hours");
What is the result?
Abdullah_Rahahleah
Highly Voted 3 years, 7 months agosteefaand
Most Recent 5 months, 4 weeks agoduydn
10 months, 2 weeks agoWilsonKKerll
2 years, 4 months ago