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

Method at

src/pendulum/datetime.py:335–343  ·  view source on GitHub ↗

Returns a new instance with the current time to a different time.

(
        self, hour: int, minute: int = 0, second: int = 0, microsecond: int = 0
    )

Source from the content-addressed store, hash-verified

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
337 ) -> Self:
338 """
339 Returns a new instance with the current time to a different time.
340 """
341 return self.set(
342 hour=hour, minute=minute, second=second, microsecond=microsecond
343 )
344
345 def in_timezone(self, tz: str | Timezone | FixedTimezone) -> Self:
346 """

Callers 15

_start_of_dayMethod · 0.95
_end_of_dayMethod · 0.95
addMethod · 0.80
subtractMethod · 0.80
test_fluid_atFunction · 0.80
test_fluid_at_partialFunction · 0.80

Calls 1

setMethod · 0.95