View Single Post
Old 09-14-2022, 05:44 AM   #578
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,496
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by jpkar View Post
Code:
program:
	number_of_seconds = 856;
	hours = floor(number_of_seconds/3600);
	minutes = floor((number_of_seconds - (hours * 3600))/60);
	seconds = mod(number_of_seconds, 60);
	format_number(hours, '02d') & ':' & format_number(minutes, '02d') & ':' & format_number(seconds, '02d')
Danke für den Tipp
Wie gelingt mir ein Verweis auf die Spalte "#sekunden"? siehe Bilder
Try this:
Code:
	number_of_seconds = $#sekunden;
# Alternate 1: number_of_seconds = field('#sekunden');
# Alternate 2: number_of_seconds = raw_field('#sekunden', '');

# Add this line if you want empty duration to display as empty instead of 00:00:00
	if ! number_of_seconds then return '' fi;
chaley is offline   Reply With Quote