2
# This file is part of Checkbox.
4
# Copyright 2012 Canonical Ltd.
6
# Checkbox is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU General Public License version 3,
8
# as published by the Free Software Foundation.
11
# Checkbox is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU General Public License for more details.
16
# You should have received a copy of the GNU General Public License
17
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
23
from datetime import (
34
def utcoffset(self, dt):
43
def __eq__(self, other):
44
return isinstance(other, tzutc)
46
def __ne__(self, other):
47
return not self.__eq__(other)
50
return "%s()" % self.__class__.__name__
52
__reduce__ = object.__reduce__