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

Class PreciseDiff

src/pendulum/_helpers.py:33–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class PreciseDiff(NamedTuple):
34 years: int
35 months: int
36 days: int
37 hours: int
38 minutes: int
39 seconds: int
40 microseconds: int
41 total_days: int
42
43 def __repr__(self) -> str:
44 return (
45 f"{self.years} years "
46 f"{self.months} months "
47 f"{self.days} days "
48 f"{self.hours} hours "
49 f"{self.minutes} minutes "
50 f"{self.seconds} seconds "
51 f"{self.microseconds} microseconds"
52 )
53
54
55def is_leap(year: int) -> bool:

Callers 1

precise_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…