How do you say

Learning a new programming language takes weeks to months.

..in Chinese?

学习新的编程语言需要几周到几个月的时间。

xué xí xīn de biān chéng yǔ yán xū yào jǐ zhōu dào jǐ gè yuè de shí jiān 。

How do you say "Given the changeable weather, be sure to check the forecast so that youll be prepared for rain or sun." in Chinese?