How do you say

It’s been really hot for the last three weeks.

..in Chinese?

过去三周的天气非常炎热。

guò qù sān zhōu de tiān qì fēi cháng yán rè 。

How do you say "They have been learning English in the library for three months." in Chinese?