Bonus shares time period

I want to know what is the time period of holding the stocks to be eligibile for bonus shares

To be eligible for Corporate Action like (Dividends, Bonus, Split etc.) you’ll have to buy the shares before ex-date. You can sell the shares anyday, on or after the ex-date and you’ll be eligible to receive the corporate action benefits. You can learn more here.