Code
Hub
Trending
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/python-pendulum/pendulum
/ week_of_month
Method
week_of_month
src/pendulum/date.py:76–77 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
74
75
@property
76
def
week_of_month(self) -> int:
77
return
math.ceil((self.day + self.first_of(
"month"
).isoweekday() - 1) / 7)
78
79
@property
80
def
age(self) -> int:
Callers
nothing calls this directly
Calls
1
first_of
Method · 0.95
Tested by
no test coverage detected