MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / in_months

Method in_months

src/pendulum/interval.py:229–233  ·  view source on GitHub ↗

Gives the duration of the Interval in full months.

(self)

Source from the content-addressed store, hash-verified

227 return self.years
228
229 def in_months(self) -> int:
230 """
231 Gives the duration of the Interval in full months.
232 """
233 return self.years * MONTHS_PER_YEAR + self.months
234
235 def in_weeks(self) -> int:
236 days = self.in_days()

Calls

no outgoing calls