public int getTimeOfDayInSeconds() {
//get the number of days in seconds.
int secondsInADay = 86400;
int totalTime = timeTracker.getSimTimeInSeconds() + timeTracker.getSimStartTime();
int secondsInCurrentDay = totalTime % secondsInADay;
return secondsInCurrentDay;
}