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

Method combine

src/pendulum/datetime.py:1267–1273  ·  view source on GitHub ↗
(
        cls,
        date: datetime.date,
        time: datetime.time,
        tzinfo: datetime.tzinfo | None = None,
    )

Source from the content-addressed store, hash-verified

1265
1266 @classmethod
1267 def combine(
1268 cls,
1269 date: datetime.date,
1270 time: datetime.time,
1271 tzinfo: datetime.tzinfo | None = None,
1272 ) -> Self:
1273 return cls.instance(datetime.datetime.combine(date, time), tz=tzinfo)
1274
1275 def astimezone(self, tz: datetime.tzinfo | None = None) -> Self:
1276 dt = super().astimezone(tz)

Callers 1

test_combineFunction · 0.80

Calls 1

instanceMethod · 0.45

Tested by 1

test_combineFunction · 0.64