Lines Matching refs:secs
56 static const char *interval_string(unsigned int secs) in interval_string() argument
63 if (secs == 0) in interval_string()
66 if (secs >= MONTH_INT) { in interval_string()
67 num = secs / MONTH_INT; in interval_string()
68 secs -= num*MONTH_INT; in interval_string()
71 if (secs >= WEEK_INT) { in interval_string()
72 num = secs / WEEK_INT; in interval_string()
73 secs -= num*WEEK_INT; in interval_string()
78 if (secs >= DAY_INT) { in interval_string()
79 num = secs / DAY_INT; in interval_string()
80 secs -= num*DAY_INT; in interval_string()
85 if (secs > 0) { in interval_string()
86 hr = secs / HOUR_INT; in interval_string()
87 secs -= hr*HOUR_INT; in interval_string()
88 min = secs / MINUTE_INT; in interval_string()
89 secs -= min*MINUTE_INT; in interval_string()
91 hr, min, secs); in interval_string()