function g = date (d, h, m, s)
%produces one number to represent time to the second
g = d+h/24+m/(24*60)+s/(24*3600)