Whether the format is -05:00, GMT-5, or UTC-5, you calculate by subtracting the offset from the time,....
Schmichael Chen wrote:+2 means SUBTRACT 2 hours from the given time. -2 means ADD 2 hours to the given time.
2015-06-20T07:50+02:00 means 2015-06-20 5:50 in GMT. See that we SUBTRACT 2 hours FROM the given time?
2015-06-20T07:50 GMT-04:00 means 2015-06-20 11:50 in GMT. See that we ADD 4 hours TO the given time?
...
However, in Exam Essentials on Page 274 of Ch. 5, the authors said and I quoteWhether the format is -05:00, GMT-5, or UTC-5, you calculate by subtracting the offset from the time,....
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
Schmichael Chen wrote:+2 means SUBTRACT 2 hours from the given time. -2 means ADD 2 hours to the given time.
2015-06-20T07:50+02:00 means 2015-06-20 5:50 in GMT. See that we SUBTRACT 2 hours FROM the given time?
2015-06-20T07:50 GMT-04:00 means 2015-06-20 11:50 in GMT. See that we ADD 4 hours TO the given time?
...
However, in Exam Essentials on Page 274 of Ch. 5, the authors said and I quoteWhether the format is -05:00, GMT-5, or UTC-5, you calculate by subtracting the offset from the time,....
OK, so what is
-(-2)
and what is
-(+2)
?
The fact is that both statements are correct. It just depends on what you regard as the "offset" value.
PS: Be careful how much bold you use in your posts; too much can come across as "shouting".
Winston
Schmichael Chen wrote: I just wanted to draw the reader's attention to what I think they should pay attention to. That's all.
Winston Gutkowski wrote:
Schmichael Chen wrote:+2 means SUBTRACT 2 hours from the given time. -2 means ADD 2 hours to the given time.
2015-06-20T07:50+02:00 means 2015-06-20 5:50 in GMT. See that we SUBTRACT 2 hours FROM the given time?
2015-06-20T07:50 GMT-04:00 means 2015-06-20 11:50 in GMT. See that we ADD 4 hours TO the given time?
...
However, in Exam Essentials on Page 274 of Ch. 5, the authors said and I quoteWhether the format is -05:00, GMT-5, or UTC-5, you calculate by subtracting the offset from the time,....
OK, so what is
-(-2)
and what is
-(+2)
?
The fact is that both statements are correct. It just depends on what you regard as the "offset" value.
PS: Be careful how much bold you use in your posts; too much can come across as "shouting".
Winston
2015-06-20T07:50+02:00 means 2015-06-20 5:50 in GMT. See that we SUBTRACT 2 hours FROM the given time?
2015-06-20T07:50 GMT-04:00 means 2015-06-20 11:50 in GMT. See that we ADD 4 hours TO the given time?
Whether the format is -05:00, GMT-5, or UTC-5, you calculate by subtracting the offset from the time,....
Whether the format is -05:00, GMT-5, or UTC-5, you calculate by SUBTRACTING the offset from the time,....
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Schmichael,
It's just "colloquial" English in the summary. The subtracting by adding negative numbers thing. I'll make a note in our private list it can be clearer for next time. You understand it well from the way you are asking this.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:You might find it helpful to open a time zone map while reading this post. It is currently 3pm in New York (East Coast time at GMT - 4). Remember that Europe is "ahead" of us. Making GMT at 7pm and GMT+2 at 9pm.
With the GMT, example, ready time is:
2015-06-25T17:13:30Z
and GMT+2 is:
2015-06-25T19:13:30
Whereas if you were told that it is 19:13 in GMT+2, you'd subtract the 2 in order to find the time in GMT getting 17:13.
,LocalDateTime ltd = LocalDateTime.ofInstant(readyTime, ZoneId.of("GMT+2"));
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:Yay. You understand it! Have a cow for spelling it out. Not only does this help you, but it helps other confused readers.
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|