View Single Post
Old 06-07-2017, 06:40 AM   #1108
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by red_dragon View Post
Actually it can be a little bit tricky to get it right. I found a good German description how to set up your own custom column that shows the reading time:

https://www.e-reader-forum.de/e-book...lten/?pageNo=2

Even if you don't speak German you should be able to follow the code and the screenshots.

The real fun started when I wanted to convert the floating point number into a string with hour and minute (e.g. 6.7 -> 6:42h). The template functions are very limited so I came up with some ugly code to do the job.
Thanks for the link! Could you post the code you used to convert into hours and minutes?
Nicolas F is offline   Reply With Quote