Anonymous user
Convert seconds to compound duration: Difference between revisions
Convert seconds to compound duration (view source)
Revision as of 11:36, 22 November 2015
, 8 years ago→{{header|Java}}: small changes
(→{{header|Java}}: added Java) |
m (→{{header|Java}}: small changes) |
||
Line 631:
StringBuilder sb = new StringBuilder();
seconds =
seconds =
seconds =
seconds =
if (seconds > 0)
Line 644:
}
private static long
long n
if (
sb.append(n).append(s);
sec %= (n * unit);
|