}
ERASEABLE
-string process_time(float outputtype, float seconds)
+string process_time(float outputtype, int seconds)
{
- float tmp_hours = 0, tmp_minutes = 0, tmp_seconds = 0;
- float tmp_years = 0, tmp_weeks = 0, tmp_days = 0;
+ int tmp_hours = 0, tmp_minutes = 0, tmp_seconds = 0;
+ int tmp_years = 0, tmp_weeks = 0, tmp_days = 0;
tmp_seconds = floor(seconds);
{
string output = "";
- output = count_seconds(tmp_seconds);
+ if (tmp_seconds)
+ output = count_seconds(tmp_seconds);
if (tmp_minutes)
{
((output != "") ? strcat(", ", output) : ""));
}
+ if (output == "")
+ return count_seconds(0);
+
return output;
}
case 3: