SunX

SunX is a basic Sunrise/Sunset calculator app for MacOS, written in early 2009 whilst learning Objective C / Cocoa programming. It was essentially a re-write of a previous Java Swing app I had written in 2006.



Source code is available here: https://github.com/ppearson/sunx.

It has some built-in locations (lat/long pairs along with timezone info) ready to be used, and you can also configure your own new ones in the Preferences window.

It can plat the time throughout the year in a graph as well, showing sunrise (blue line), sunset (red line) as well as day length (yellow line).

I am (very) slowly migrating this functionally to some of my web apps in order to be more portable.