mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Make new days_between function return a float instead of an int.
This commit is contained in:
parent
1341f26acd
commit
c69fcc1d13
1 changed files with 1 additions and 1 deletions
|
|
@ -785,7 +785,7 @@ def evaluate(self, formatter, kwargs, mi, locals, date1, date2):
|
|||
except:
|
||||
return ''
|
||||
i = d1 - d2
|
||||
return str(i.days)
|
||||
return str('%d.%d'%(i.days, i.seconds/8640))
|
||||
|
||||
|
||||
builtin_add = BuiltinAdd()
|
||||
|
|
|
|||
Loading…
Reference in a new issue