MCPcopy Create free account
hub / github.com/python-pendulum/pendulum / ordinal

Method ordinal

src/pendulum/locales/locale.py:80–81  ·  view source on GitHub ↗
(self, number: int)

Source from the content-addressed store, hash-verified

78 return cast(str, self._data["plural"](number))
79
80 def ordinal(self, number: int) -> str:
81 return cast(str, self._data["ordinal"](number))
82
83 def ordinalize(self, number: int) -> str:
84 ordinal = self.get(f"custom.ordinal.{self.ordinal(number)}")

Callers 1

ordinalizeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected