Sundials: History, Theory, and Practice