Israel and Hamas agree on ceasefire beginning from 2300 GMT Thursday