Linux jobworks 6.8.0-136-generic #136-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 1 21:53:05 UTC 2026 x86_64
Apache/2.4.58 (Ubuntu)
Server IP : 10.0.1.5 & Your IP : 216.73.217.52
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3 /
dist-packages /
twisted /
python /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2026-06-04 06:40
_pydoctortemplates
[ DIR ]
drwxr-xr-x
2026-06-04 06:40
test
[ DIR ]
drwxr-xr-x
2026-06-04 06:40
__init__.py
598
B
-rw-r--r--
2026-05-22 14:58
_appdirs.py
828
B
-rw-r--r--
2026-05-22 14:58
_inotify.py
3.42
KB
-rw-r--r--
2026-05-22 14:58
_release.py
8.57
KB
-rw-r--r--
2026-05-22 14:58
_shellcomp.py
24.68
KB
-rw-r--r--
2026-05-22 14:58
_textattributes.py
8.88
KB
-rw-r--r--
2026-05-22 14:58
_tzhelper.py
3.12
KB
-rw-r--r--
2026-05-22 14:58
_url.py
228
B
-rw-r--r--
2026-05-22 14:58
compat.py
16.42
KB
-rw-r--r--
2026-05-22 14:58
components.py
13.87
KB
-rw-r--r--
2026-05-22 14:58
constants.py
460
B
-rw-r--r--
2026-05-22 14:58
context.py
3.96
KB
-rw-r--r--
2026-05-22 14:58
deprecate.py
27.49
KB
-rw-r--r--
2026-05-22 14:58
failure.py
27.43
KB
-rw-r--r--
2026-05-22 14:58
fakepwd.py
6.88
KB
-rw-r--r--
2026-05-22 14:58
filepath.py
58.92
KB
-rw-r--r--
2026-05-22 14:58
formmethod.py
11.82
KB
-rw-r--r--
2026-05-22 14:58
htmlizer.py
3.54
KB
-rw-r--r--
2026-05-22 14:58
lockfile.py
7.79
KB
-rw-r--r--
2026-05-22 14:58
log.py
21.89
KB
-rw-r--r--
2026-05-22 14:58
logfile.py
9.88
KB
-rw-r--r--
2026-05-22 14:58
modules.py
26.21
KB
-rw-r--r--
2026-05-22 14:58
monkey.py
2.23
KB
-rw-r--r--
2026-05-22 14:58
procutils.py
1.34
KB
-rw-r--r--
2026-05-22 14:58
randbytes.py
3.43
KB
-rw-r--r--
2026-05-22 14:58
rebuild.py
6.96
KB
-rw-r--r--
2026-05-22 14:58
reflect.py
20.02
KB
-rw-r--r--
2026-05-22 14:58
release.py
1.08
KB
-rw-r--r--
2026-05-22 14:58
roots.py
7.01
KB
-rw-r--r--
2026-05-22 14:58
runtime.py
5.79
KB
-rw-r--r--
2026-05-22 14:58
sendmsg.py
2.62
KB
-rw-r--r--
2026-05-22 14:58
shortcut.py
2.23
KB
-rw-r--r--
2026-05-22 14:58
syslog.py
3.57
KB
-rw-r--r--
2026-05-22 14:58
systemd.py
5.45
KB
-rw-r--r--
2026-05-22 14:58
text.py
5.28
KB
-rw-r--r--
2026-05-22 14:58
threadable.py
3.25
KB
-rw-r--r--
2026-05-22 14:58
threadpool.py
10.65
KB
-rw-r--r--
2026-05-22 14:58
twisted-completion.zsh
1.34
KB
-rw-r--r--
2026-05-22 14:58
url.py
244
B
-rw-r--r--
2026-05-22 14:58
urlpath.py
8.25
KB
-rw-r--r--
2026-05-22 14:58
usage.py
33.79
KB
-rw-r--r--
2026-05-22 14:58
util.py
26.86
KB
-rw-r--r--
2026-05-22 14:58
versions.py
273
B
-rw-r--r--
2026-05-22 14:58
win32.py
4.66
KB
-rw-r--r--
2026-05-22 14:58
zippath.py
11.99
KB
-rw-r--r--
2026-05-22 14:58
zipstream.py
9.45
KB
-rw-r--r--
2026-05-22 14:58
Save
Rename
# -*- test-case-name: twisted.python.test.test_tzhelper -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Time zone utilities. """ from datetime import ( datetime as DateTime, timedelta as TimeDelta, timezone, tzinfo as TZInfo, ) from typing import Optional __all__ = [ "FixedOffsetTimeZone", "UTC", ] class FixedOffsetTimeZone(TZInfo): """ Represents a fixed timezone offset (without daylight saving time). @ivar name: A L{str} giving the name of this timezone; the name just includes how much time this offset represents. @ivar offset: A L{TimeDelta} giving the amount of time this timezone is offset. """ def __init__(self, offset: TimeDelta, name: Optional[str] = None) -> None: """ Construct a L{FixedOffsetTimeZone} with a fixed offset. @param offset: a delta representing the offset from UTC. @param name: A name to be given for this timezone. """ self.offset = offset self.name = name @classmethod def fromSignHoursMinutes( cls, sign: str, hours: int, minutes: int ) -> "FixedOffsetTimeZone": """ Construct a L{FixedOffsetTimeZone} from an offset described by sign ('+' or '-'), hours, and minutes. @note: For protocol compatibility with AMP, this method never uses 'Z' @param sign: A string describing the positive or negative-ness of the offset. @param hours: The number of hours in the offset. @param minutes: The number of minutes in the offset @return: A time zone with the given offset, and a name describing the offset. """ name = "%s%02i:%02i" % (sign, hours, minutes) if sign == "-": hours = -hours minutes = -minutes elif sign != "+": raise ValueError(f"Invalid sign for timezone {sign!r}") return cls(TimeDelta(hours=hours, minutes=minutes), name) @classmethod def fromLocalTimeStamp(cls, timeStamp: float) -> "FixedOffsetTimeZone": """ Create a time zone with a fixed offset corresponding to a time stamp in the system's locally configured time zone. """ offset = DateTime.fromtimestamp(timeStamp) - DateTime.fromtimestamp( timeStamp, timezone.utc ).replace(tzinfo=None) return cls(offset) def utcoffset(self, dt: Optional[DateTime]) -> TimeDelta: """ Return the given timezone's offset from UTC. """ return self.offset def dst(self, dt: Optional[DateTime]) -> TimeDelta: """ Return a zero L{TimeDelta} for the daylight saving time offset, since there is never one. """ return TimeDelta(0) def tzname(self, dt: Optional[DateTime]) -> str: """ Return a string describing this timezone. """ if self.name is not None: return self.name # XXX this is wrong; the tests are dt = DateTime.fromtimestamp(0, self) return dt.strftime("UTC%z") UTC = FixedOffsetTimeZone.fromSignHoursMinutes("+", 0, 0)