Page Menu
Home
Search
Configure Global Search
Log In
Files
F14208463
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
Tue, Jan 31, 9:20 AM (1 d, 23 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
46/e6/ec6da4dbda85692a8858eccf899a
Attached To
rFW Flamenco Worker
Event Timeline
Log In to Comment