Eid al-Fitr celebrates the purification achieved by a month of sunrise-to-sunset fasting , one of the five pillars of Islam , and is marked by several days of festivities .