Shulchan Aruch/Yoreh Deah/262
א The time of circumcision for the Healthy, Sick and Androginous
We don't circumcise until netz hachamah (sunrise) on the eigth day from birth (and if it was first light it is ok)""mishna 82 megilla"" and all day is kosher for milah but we try to be zealous in the mitzvah and the correct time for the circumsision is in the morning. And even if we do a milah not at its time we don't do except for during the day. Ab) If he is over and circumcises at night he is required to redo it and do hatif dum brit (draw some blood) mishna there Circumcises before the eigth day and during the day is is ok the rosh, in perek Rabbi Eliezer de Milah, Rashba and not as we will learn in 264
ב We don't circumcise a sick child until it is healthy. And we learn that we don't circumcise him until seven complete days after he is better. With what do we say this when he has a fever or his whole body is sick, but if only one of his limbs is sick like he has a problem with his eye, or problem with his מועט and similar to this we wait until he is healthy and after this we circumcise him. ( but if his eyes hurt him greatly, we treat it like a sickness of the complete body)
ג Androgynous, and those that have two foreskins and those that were born by Caesars Section are circumcised on the eigth day.
ד If he was born during twilight he is circumcised on the ninth day because of doubt when the eigth day is. And if the head was out of the vagina while it was still day or a cry from it even if it was born after many days we count eight days from the day that the head came out or the time the cry from it was heard (There are those who say it in the plain case but if his mother says the baby was resting with the claim like most time and his nose was not yet born the general rule that even though we heard the cry from him while it was still day and even though babies don't cry until their head is outside of the vagina the mother is believed the rest of the time when she says the baby cried( rabbi Yoel haLevi))
ה If he was born at a time that you could see many small stars in the sky, it is close to questionable stars circumcise him starting starting the count tomorow since it was not shabbats and not om tov even though there was in the sky one needs to be careful since there was no light of day.
ו If after the head has gone out of the vagina one sees 3 medium sized stars Since it was close to night even if it was after shabbos but if it was a while after the birth and he had seen that it was still day when the head was out then we circumcise him on the eigth day even if it is shabbos.
ז This matter is not put aside by prayers. If he prayed and it was still day we are not lenient or stringent Shulchan_Aruch/Yoreh_Deah#Laws_of_Circumcision