Convert naive time to local time
(self, dt, is_dst=False)
| 421 | return 'pytz.FixedOffset(%d)' % self._minutes |
| 422 | |
| 423 | def localize(self, dt, is_dst=False): |
| 424 | '''Convert naive time to local time''' |
| 425 | if dt.tzinfo is not None: |
| 426 | raise ValueError('Not naive datetime (tzinfo is already set)') |
| 427 | return dt.replace(tzinfo=self) |
| 428 | |
| 429 | def normalize(self, dt, is_dst=False): |
| 430 | '''Correct the timezone information on the given datetime''' |
nothing calls this directly
no outgoing calls
no test coverage detected