Basic courses will only last for about 1 or 2 months. However, advanced courses, especially for programming, can last for up to a year or more. A certification course maybe a 6- month long program while a Degree certification may last for 2 to 3 years. You can get in touch with the institutes and find more details on course duration for the course you are interested in.