View Single Post
Old 03-26-2025, 05:31 PM   #5
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: 47,092
Karma: 169815798
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For what it may be worth, here's my Kobo reading time columns setup. I've added two custom columns that display the reading time and reading time remaining in hours/minutes instead of seconds.

The templates for the two columns are:
Code:
program:

total = $#kobo_time_spent_reading;
hours = floor(total/3600);
minutes = round((total-hours*3600)/60);

def format(v, str):
    if v == 0 then return '' fi;
    return v & ' ' & str & ' '
fed;
format(hours, 'hr') & format(minutes, 'min')
Code:
program:

total = $#kobo_rest_of_book_estimate;
hours = floor(total/3600);
minutes = round((total-hours*3600)/60);

def format(v, str):
    if v == 0 then return '' fi;
    return v & ' ' & str & ' '
fed;
format(hours, 'hr') & format(minutes, 'min')
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-03-26 142557.png
Views:	53
Size:	53.9 KB
ID:	214670   Click image for larger version

Name:	Screenshot 2025-03-26 142626.png
Views:	49
Size:	25.2 KB
ID:	214671   Click image for larger version

Name:	Screenshot 2025-03-26 142710.png
Views:	55
Size:	36.0 KB
ID:	214672   Click image for larger version

Name:	Screenshot 2025-03-26 142743.png
Views:	49
Size:	34.8 KB
ID:	214673  
DNSB is offline   Reply With Quote