If an ones delayed the milah until sunset, Rav Ovadia Yosef, zt"l, ruled to circumcise at bein hashemashot by a safek sefeka, as Rabbeinu Tam holds that this time is still day. The Chida wrote that a birth when the sun is no longer visible is counted from the night. A child born at bein hashemashot is not circumcised on Shabbat.