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

Method on

src/pendulum/datetime.py:329–333  ·  view source on GitHub ↗

Returns a new instance with the current date set to a different date.

(self, year: int, month: int, day: int)

Source from the content-addressed store, hash-verified

327 )
328
329 def on(self, year: int, month: int, day: int) -> Self:
330 """
331 Returns a new instance with the current date set to a different date.
332 """
333 return self.set(year=int(year), month=int(month), day=int(day))
334
335 def at(
336 self, hour: int, minute: int = 0, second: int = 0, microsecond: int = 0

Callers 6

_first_of_quarterMethod · 0.95
_last_of_quarterMethod · 0.95
_nth_of_quarterMethod · 0.95
_nth_of_yearMethod · 0.95
test_fluid_onFunction · 0.80

Calls 1

setMethod · 0.95

Tested by 2

test_fluid_onFunction · 0.64