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

Function local

src/pendulum/__init__.py:155–169  ·  view source on GitHub ↗

Return a DateTime in the local timezone.

(
    year: int,
    month: int,
    day: int,
    hour: int = 0,
    minute: int = 0,
    second: int = 0,
    microsecond: int = 0,
)

Source from the content-addressed store, hash-verified

153
154
155def local(
156 year: int,
157 month: int,
158 day: int,
159 hour: int = 0,
160 minute: int = 0,
161 second: int = 0,
162 microsecond: int = 0,
163) -> DateTime:
164 """
165 Return a DateTime in the local timezone.
166 """
167 return datetime(
168 year, month, day, hour, minute, second, microsecond, tz=local_timezone()
169 )
170
171
172def naive(

Callers

nothing calls this directly

Calls 2

local_timezoneFunction · 0.90
datetimeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…