Generate data necessary for displaying a calendar from time data.