Home
last modified time | relevance | path

Searched refs:fmtTimeSpan (Results 1 – 8 of 8) sorted by relevance

/dports/games/anki/anki-2.1.16/tests/
H A Dtest_utils.py3 from anki.utils import fmtTimeSpan
6 assert fmtTimeSpan(5) == "5 seconds"
7 assert fmtTimeSpan(5, inTime=True) == "in 5 seconds"
/dports/games/anki/anki-2.1.16/anki/
H A Dstats.py9 from anki.utils import fmtTimeSpan, ids2str
25 fmt = lambda x, **kwargs: fmtTimeSpan(x, short=True, **kwargs)
81 str = fmtTimeSpan((tm/60)*60, short=True, point=-1, unit=1)
83 str += fmtTimeSpan(tm%60, point=2 if not str else -1, short=True)
172 a=bold(msgp1), b=bold(fmtTimeSpan(thetime, unit=1, inTime=True)),
542 self._line(i, _("Average interval"), fmtTimeSpan(avg*86400))
543 self._line(i, _("Longest interval"), fmtTimeSpan(max_*86400))
H A Dutils.py67 def fmtTimeSpan(time, pad=0, point=0, short=False, inTime=False, unit=99): function
H A Dsched.py12 from anki.utils import ids2str, intTime, fmtTimeSpan
1211 s = fmtTimeSpan(ivl, short=short)
H A Dschedv2.py12 from anki.utils import ids2str, intTime, fmtTimeSpan
1315 s = fmtTimeSpan(ivl, short=short)
/dports/games/anki/anki-2.1.16/aqt/
H A Ddeckbrowser.py8 from anki.utils import ids2str, fmtTimeSpan
115 b=fmtTimeSpan(thetime, unit=1, inTime=True))
H A Dbrowser.py17 from anki.utils import fmtTimeSpan, ids2str, htmlToTextLine, \
277 return fmtTimeSpan(c.ivl*86400)
1196 ivl = fmtTimeSpan(ivl*86400, short=True)
/dports/games/py-mnemosyne/Mnemosyne-2.7.3/mnemosyne/libmnemosyne/renderers/anki/
H A Dutils.py58 def fmtTimeSpan(time, pad=0, point=0, short=False, after=False, unit=99): function