madridpersonaltrainer / legall

Towards a Common Language for Runners
GNU General Public License v2.0
0 stars 0 forks source link

Pretty-print times #6

Open neutropolis opened 10 years ago

neutropolis commented 10 years ago

Times are not formatted very nice while being printed. For instance if an element holds the unity (1), it's wrong to show the plural s. If an element holds no value, it shouldn't be considered.

To sum up, correct the next example:

1 hours and 0 minutes and 1 seconds