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

Method set

src/pendulum/date.py:46–49  ·  view source on GitHub ↗
(
        self, year: int | None = None, month: int | None = None, day: int | None = None
    )

Source from the content-addressed store, hash-verified

44 # Getters/Setters
45
46 def set(
47 self, year: int | None = None, month: int | None = None, day: int | None = None
48 ) -> Self:
49 return self.replace(year=year, month=month, day=day)
50
51 @property
52 def day_of_week(self) -> WeekDay:

Callers 15

_start_of_monthMethod · 0.95
_end_of_monthMethod · 0.95
_start_of_yearMethod · 0.95
_end_of_yearMethod · 0.95
_start_of_decadeMethod · 0.95
_end_of_decadeMethod · 0.95
_start_of_centuryMethod · 0.95
_end_of_centuryMethod · 0.95
_nth_of_monthMethod · 0.95
_first_of_quarterMethod · 0.95
_last_of_quarterMethod · 0.95
_nth_of_quarterMethod · 0.95

Calls 1

replaceMethod · 0.95

Tested by 13

test_fluid_year_setterFunction · 0.76
test_fluid_month_setterFunction · 0.76
test_fluid_day_setterFunction · 0.76
test_fluid_year_setterFunction · 0.36
test_fluid_month_setterFunction · 0.36
test_fluid_day_setterFunction · 0.36
test_fluid_hour_setterFunction · 0.36
test_fluid_minute_setterFunction · 0.36
test_fluid_second_setterFunction · 0.36