Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ plural
Method
plural
Lib/_pydatetime.py:769–770 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
767
s =
"%d:%02d:%02d"
% (hh, mm, ss)
768
if
self._days:
769
def
plural(n):
770
return
n, abs(n) != 1 and
"s"
or
""
771
s = (
"%d day%s, "
% plural(self._days)) + s
772
if
self._microseconds:
773
s = s +
".%06d"
% self._microseconds
Callers
4
gettext
Method · 0.45
ngettext
Method · 0.45
pgettext
Method · 0.45
npgettext
Method · 0.45
Calls
1
abs
Function · 0.70
Tested by
no test coverage detected