When まで is preceded with a time, does it include that time?


For example, in my grammar textbook, the sentence:

> 昨日は **3時から5時まで** 友達とテニスをした

Is translated as "Yesterday, I played tennis with my friend from 3 till 5."
Which implies that the speaker was playing from 3 **up to, but not beyond** 5
(so for 2 hours).

In the notes section however, it says that まで includes the time that it is
preceded by:

> 来週の月曜日まで休みます

means "I will be absent until next Tuesday", i.e., in this case まで includes
Monday (月曜日).

Which is correct?




まで includes the time which a speaker refers to, so 来週の月曜日まで休みます means "I will
be absent until next Monday" and it includes next Monday.

As to 3時から5時まで, if you can think it means "include 5:00", it isn't
conflicting, is it?

