I am trying to get all the latitudes and longitudes of the limit between day and night on Earth. You can see what I mean here.
All I could find are ways to get the date and time of a sunset / sunrise for a given location, but I'm trying to do the opposite.
It seems that it would be some periodic function with a changing phase, sadly I don't really know how to find it, or even if it exists ?