Page Menu
Home
Search
Configure Global Search
Log In
Files
F13250253
tz.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
603 B
Subscribers
None
tz.py
View Options
import
datetime
class
tzutc
(
datetime
.
tzinfo
):
"""tzinfo subclass for UTC time."""
def
utcoffset
(
self
,
dt
):
return
datetime
.
timedelta
(
0
)
def
dst
(
self
,
dt
):
return
datetime
.
timedelta
(
0
)
def
tzname
(
self
,
dt
):
return
"UTC"
def
is_ambiguous
(
self
,
dt
):
return
False
def
__eq__
(
self
,
other
):
if
not
isinstance
(
other
,
tzutc
):
return
NotImplemented
return
True
__hash__
=
None
def
__ne__
(
self
,
other
):
return
not
(
self
==
other
)
def
__repr__
(
self
):
return
"
%s
()"
%
self
.
__class__
.
__name__
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Mon, Jul 4, 8:27 PM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
06/c5/3d6293e8bc2f53e175a141582290
Attached To
rFW Flamenco Worker
Event Timeline
Log In to Comment