See datetime.tzinfo.fromutc
(self, dt)
| 80 | offset at some point in their history |
| 81 | ''' |
| 82 | def fromutc(self, dt): |
| 83 | '''See datetime.tzinfo.fromutc''' |
| 84 | if dt.tzinfo is not None and dt.tzinfo is not self: |
| 85 | raise ValueError('fromutc: dt.tzinfo is not self') |
| 86 | return (dt + self._utcoffset).replace(tzinfo=self) |
| 87 | |
| 88 | def utcoffset(self, dt, is_dst=None): |
| 89 | '''See datetime.tzinfo.utcoffset |
nothing calls this directly
no outgoing calls
no test coverage detected