Convert naive time to local time
(self, dt)
| 115 | return _ZERO |
| 116 | |
| 117 | def localize(self, dt): |
| 118 | """Convert naive time to local time""" |
| 119 | if dt.tzinfo is not None: |
| 120 | raise ValueError('Not naive datetime (tzinfo is already set)') |
| 121 | return dt.replace(tzinfo=self) |
| 122 | |
| 123 | def normalize(self, dt): |
| 124 | """Correct the timezone information on the given datetime""" |