3 ms·
if (mins < 4) return "a couple of minutes" if (mins < 8) return "five minutes" if (mins < 12) return "ten minutes" if (mins < 18) return "quarter of an
by iso1631 4y ago
if (mins < 4) return "a couple of minutes"
if (mins < 8) return "five minutes"
if (mins < 12) return "ten minutes"
if (mins < 18) return "quarter of an hour"
if (mins < 25) return "20 minutes"
if (mins < 40) return "half an hour"
if (mins < 50) return "45 minutes"
if (mins < 70) return "about an hour"
if (mins < 100) return "hour and a half"
if (mins < 250) return "a couple of hours"
- Karellen 4y agoWouldn't it be more useful to overestimate, rather than underestimate? Also, is the "couple of hours" estimate being off by more than a factor of 2 a typo, or are you just trolling at that point?
- madeofpalk 4y agoor just use the minutes value.