Thread: Libra Colour Reading stats are off
View Single Post
Old 03-07-2025, 01:29 PM   #7
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,864
Karma: 169716272
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by hsuan9522 View Post
Hi DNSB,
I noticed that your picture shows the total reading time. How did you get that? Are you using Kobo Utilities for it as well?
The current Kobo Utilities saves the reading time but in seconds. The column that I have visible just converts that columns to hours/minutes since most people find that easier to read 2 hours, 19 minutes than 8345 seconds.

See the https://www.mobileread.com/forums/sh...d.php?t=366110 thread for some information on this. For the custom column, the attached image is my setup. The template is listed below. Once the custom column is created, I showed it and hid the original time in seconds column.

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')
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2025-03-07 102617.png
Views:	44
Size:	27.8 KB
ID:	214182  
DNSB is offline   Reply With Quote