Java OCA OCP Practice Question 1820

Question

Which of the answer choices is true given the following?

2020-01-07T10:00-07:00[America/Phoenix] 
2020-01-07T08:00-08:00[America/Vancouver] 
  • A. The first date/time is one hour earlier than the second.
  • B. The first date/time is three hours earlier than the second.
  • C. The first date/time is one hour later than the second.
  • D. The first date/time is three hours later than the second.


C.

Note

Converting to GMT by subtracting the time zone offset, it is 17:00 for the Phoenix time since 10 minus negative 7 is 17.

In GMT, the Vancouver time is 16:00 due to subtracting negative 8 from 8.

Remember that subtracting a negative number is the same as adding.

Therefore, the Vancouver time is an hour earlier than the Phoenix time, and Option C is correct.




PreviousNext

Related