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

Method is_same_day

src/pendulum/datetime.py:534–541  ·  view source on GitHub ↗

Checks if the passed in date is the same day as the instance current day.

(self, dt: datetime.datetime)

Source from the content-addressed store, hash-verified

532 )
533
534 def is_same_day(self, dt: datetime.datetime) -> bool: # type: ignore[override]
535 """
536 Checks if the passed in date is the same day
537 as the instance current day.
538 """
539 dt = self.instance(dt)
540
541 return self.to_date_string() == dt.to_date_string()
542
543 def is_anniversary( # type: ignore[override]
544 self, dt: datetime.datetime | None = None

Callers

nothing calls this directly

Calls 2

instanceMethod · 0.95
to_date_stringMethod · 0.80

Tested by

no test coverage detected