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,
)
| 153 | |
| 154 | |
| 155 | def 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 | |
| 172 | def naive( |
nothing calls this directly
no test coverage detected
searching dependent graphs…