Buckling under global pressure, Muammar Gaddafi on Friday announced a ceasefire and halted all military operations, hours after the United Nations authorised a no-fly zone over Libya and United States and allies readied plans for a military action which France said could come 'within hours.'