# File diffeq.rb, line 931
def sec_to_display(sec)
if sec == 0.0 then
return " Unknown"
end

sec_in_millinium =  SEC_IN_MIN *  MIN_IN_HOUR * HOURS_IN_DAY * DAYS_IN_YEAR * YEARS_IN_CENTURY * CENTURIES_IN_MILLINIUM
milliniums = sec/sec_in_millinium
millinium_int = milliniums.to_i
centuries = (milliniums - millinium_int.to_f)* CENTURIES_IN_MILLINIUM
cent_int = centuries.to_i
years = (centuries-cent_int.to_f) * YEARS_IN_CENTURY
years_int = years.to_i
days = (years - years_int.to_f)  * DAYS_IN_YEAR
days_int = days.to_i
hours = (days - days_int.to_f) * HOURS_IN_DAY
hours_int = hours.to_i
minutes = (hours - hours_int.to_f) * MIN_IN_HOUR
minutes_int = minutes.to_i
seconds = (minutes - minutes_int.to_f) * SEC_IN_MIN
sec_int = seconds.to_i
str = " "
if millinium_int > 0 then
str = str + millinium_int.to_s + " Millinia "
end
if cent_int > 0 then
str = str + cent_int.to_s + " Centuries "
end
if years_int > 0 then
str = str + years_int.to_s + " Years "
end
if days_int > 0 then
str = str + days_int.to_s + " Days "
end
if hours_int > 0 then
str = str + hours_int.to_s + " Hours "
end
if minutes_int > 0 then
str = str + minutes_int.to_s + " Minutes "
end
if sec_int > 0 then
str = str + sec_int.to_s + " Seconds "
end
return str
end