View Single Post
Old 07-07-2025, 08:56 PM   #372
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,978
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
As @chaley said, it would help if you posted what you used as the template and the column definition.

For what it may be worth, here's my variant which gives hours, minutes, seconds:

Code:
program:

	total = $#kobo_time_spent_reading;

	hours = floor(total/3600);
	minutes = floor(mod(total, 3600)/60);
	seconds = mod(total, 60);
	def format(v, str):
    if v == 0 then return '' fi;
    return v & ' ' & str & ' '
fed;
format(hours, 'hr') & format(minutes, 'min') & format(seconds, 'sec')
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-07-07 175756.png
Views:	33
Size:	27.2 KB
ID:	216794   Click image for larger version

Name:	Screenshot 2025-07-07 180417.png
Views:	25
Size:	7.8 KB
ID:	216795  

Last edited by DNSB; 07-07-2025 at 09:04 PM. Reason: Added images
DNSB is offline   Reply With Quote