function timeString = MakePretty(t)
% t is a time in days.
% timeSTring is a string that displays its hour-minute-second equivalent

seconds = round(24*60*60*t);
hours = floor(seconds/3600);
seconds = seconds - 3600*hours;
minutes = floor(seconds/60);
seconds = seconds - 60*minutes;
timeString = sprintf('%8.6f days = %2dh %2dm %2ds',t,hours,minutes,seconds);