Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RT-Thread/env-windows
/ plural
Method
plural
tools/python-3.11.9-amd64/Lib/datetime.py:712–713 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
710
s =
"%d:%02d:%02d"
% (hh, mm, ss)
711
if
self._days:
712
def
plural(n):
713
return
n, abs(n) != 1 and
"s"
or
""
714
s = (
"%d day%s, "
% plural(self._days)) + s
715
if
self._microseconds:
716
s = s +
".%06d"
% self._microseconds
Callers
4
gettext
Method · 0.80
ngettext
Method · 0.80
pgettext
Method · 0.80
npgettext
Method · 0.80
Calls
1
abs
Function · 0.70
Tested by
no test coverage detected