Quote:
Originally Posted by hsuan9522
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')