Methods to calculate solar events from timestamp