Hamas told Egypt it would agree to a year-long renewable ceasefire in the Gaza Strip if Israel pulls out its forces within a week and reopens border crossings immediately, Hamas and diplomatic sources said on Thursday.