When both the Houses of the Parliament are not in session and there arises a need to make a law on some urgent matter, then the President can promulgate (a law or decree into effect by official proclamation) a law which is known as an ordinance.
According to Article 123, such ordinance has to be laid before both houses of Parliament within 6 weeks from the date on which the Parliament resumes its session. An ordinance can be withdrawn at any time by the President.
There cannot be a gap of more than 6 months within two sessions of Parliament. So maximum life of an ordinance is 6 months + 6 weeks = Approx 7 ½ months.
Similar ordinance-making powers have been given to the Governor of the States under Article 213.
Some appreciation please!