Searched refs:fmtTimeSpan (Results 1 – 8 of 8) sorted by relevance
/dports/games/anki/anki-2.1.16/tests/ |
H A D | test_utils.py | 3 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 D | stats.py | 9 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 D | utils.py | 67 def fmtTimeSpan(time, pad=0, point=0, short=False, inTime=False, unit=99): function
|
H A D | sched.py | 12 from anki.utils import ids2str, intTime, fmtTimeSpan 1211 s = fmtTimeSpan(ivl, short=short)
|
H A D | schedv2.py | 12 from anki.utils import ids2str, intTime, fmtTimeSpan 1315 s = fmtTimeSpan(ivl, short=short)
|
/dports/games/anki/anki-2.1.16/aqt/ |
H A D | deckbrowser.py | 8 from anki.utils import ids2str, fmtTimeSpan 115 b=fmtTimeSpan(thetime, unit=1, inTime=True))
|
H A D | browser.py | 17 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 D | utils.py | 58 def fmtTimeSpan(time, pad=0, point=0, short=False, after=False, unit=99): function
|