You can take a look at the source code here if you’re interested: https://github.com/doersino/earthacrosstime