View Single Post
Old 03-28-2025, 12:26 PM   #820
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,525
Karma: 8065948
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by ownedbycats View Post
Yes.
Code:
program:
# Example: 3 hours, 12 minutes, 33 seconds
	input_secs = (3 * 3600) + (12 * 60) + 33;

	hours = floor(input_secs/3600);
	minutes = floor(mod(input_secs, 3600)/60);
	seconds = mod(input_secs, 60);
	r = hours & ' hours, ' & minutes  & ' minutes, ' & seconds & ' seconds'
chaley is offline   Reply With Quote