Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-19-2024, 08:48 AM   #16
Protoplast26
Member
Protoplast26 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2021
Device: Kindle 10th gen and Kobo Aura H2O
how to get leading zeros on this template

program:
floor(days_between($$#read_end, $$#read_start))
Protoplast26 is offline   Reply With Quote
Old 10-19-2024, 09:44 AM   #17
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Protoplast26 View Post
how to get leading zeros on this template

program:
floor(days_between($$#read_end, $$#read_start))
Use the format_number() function.
chaley is offline   Reply With Quote
Advert
Old 10-20-2024, 07:20 AM   #18
Protoplast26
Member
Protoplast26 began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Jul 2021
Device: Kindle 10th gen and Kobo Aura H2O
Quote:
Originally Posted by chaley View Post
Use the format_number() function.
can you give me an example
Protoplast26 is offline   Reply With Quote
Old 10-20-2024, 01:37 PM   #19
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 893
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by Protoplast26 View Post
how to get leading zeros on this template

program:
floor(days_between($$#read_end, $$#read_start))

It would be something like this
Code:
program: format_number(days_between(raw_field('#read_end'), raw_field('#read_start')), "{0:02.0f}")

Last edited by dunhill; 10-20-2024 at 01:40 PM.
dunhill is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Result of difference between two dates populated in a column China Diapers Calibre 8 07-07-2019 04:53 AM
Calculate reading time. dunhill Library Management 12 12-12-2018 02:10 PM
How does Kobo calculate reading statistics? Mrs_Often Kobo Reader 24 10-30-2015 03:08 AM
Is there any way to calculate page numbers better for H2O? OrangeFlavored Kobo Reader 3 10-19-2014 06:10 PM


All times are GMT -4. The time now is 10:10 AM.


MobileRead.com is a privately owned, operated and funded community.