As the Rambam wrote, Israel fasts on these days to awaken the hearts to teshuvah. A fast is from dawn until the stars come out, except Tisha B'Av. The night before, one who has not slept may eat until dawn. As the Rema wrote, the people of Ashkenaz do not announce the fasts, and they are lenient lechatchilah to drink at night even without a condition.