DayNightTerminator
DayNightTerminator[] is a one-dimensional GeoGraphics primitive that represents the separation line between the halves of the Earth currently in daytime and nighttime.
DayNightTerminator[datespec] represents the separation line between day and night for the specified date.
Examples
Show the day/night boundary:
GeoGraphics[{Red, DayNightTerminator[]}]For a specific date:
GeoGraphics[DayNightTerminator[DateObject[{2024, 6, 21}]]]Please visit the official Wolfram Language Reference for more details.