Talk:Convert seconds to compound duration: Difference between revisions

m
Line 12:
Another issue: is it really necessary to post code in the interactive prompt format? It makes testing the code unpleasant because of the ">>>" prompt, and the mixed tab/space indentations looks like crap in my text editor. It may be useful to show users how to use the interactive shell, but since majority of coding is not going to be done in this fashion, having half of the python examples on RC so presented is overdoing it. --[[User:Ledrug|Ledrug]] ([[User talk:Ledrug|talk]]) 04:40, 7 June 2015 (UTC)
 
: The current specification clearly states that the result for 0 seconds should be blank (or the empty string). And it gives no guidance about what to do with negative numbers. I'm fine with that - makes for a clean implementation. Specifically:
 
::<li>However, '''only''' include quantities with non-zero values in the output (e.g. ''...'').
6,962

edits