Online booking is ideally available 1 hour to 15 minutes prior to the showtime and it varies from cinema to cinema. 


Certain cinema do allow last minutes booking too :)


P.S: Cinema can stop the online booking before the cut off time since they reserve the seats for offline bookings.