If a birth is near sunset, the exact moment is the emergence of the head, and Rav Shlomo Zalman Auerbach, zt"l, wrote that one may rely on a midwife’s word when she has no personal interest. A child born at bein hashemashot is circumcised on the ninth day, and Rav Ovadia Yosef, zt"l, ruled that a milah not in its time does not push Yom Tov sheni aside.