mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 15:14:52 +02:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
0cfc152b05
1 changed files with 1 additions and 1 deletions
|
|
@ -1187,7 +1187,7 @@ def evaluate(self, formatter, kwargs, mi, locals, date1, date2):
|
|||
except:
|
||||
return ''
|
||||
i = d1 - d2
|
||||
return str('%d.%d'%(i.days, i.seconds/8640))
|
||||
return '%.1f'%(i.days + (i.seconds/(24.0*60.0*60.0)))
|
||||
|
||||
class BuiltinLanguageStrings(BuiltinFormatterFunction):
|
||||
name = 'language_strings'
|
||||
|
|
|
|||
Loading…
Reference in a new issue