Represents a fixed timezone offset (without daylight saving time).

Instance Variable name A str giving the name of this timezone; the name just includes how much time this offset represents.
Instance Variable offset A timedelta giving the amount of time this timezone is offset.
Method __init__ Construct a FixedOffsetTimeZone with a fixed offset.
Class Method fromSignHoursMinutes Construct a FixedOffsetTimeZone from an offset described by sign ('+' or '-'), hours, and minutes.
Class Method fromLocalTimeStamp Create a time zone with a fixed offset corresponding to a time stamp in the system's locally configured time zone.
Method utcoffset Return this timezone's offset from UTC.
Method dst Return a zero datetime.timedelta for the daylight saving time offset, since there is never one.
Method tzname Return a string describing this timezone.
name =
A str giving the name of this timezone; the name just includes how much time this offset represents.
offset =
A timedelta giving the amount of time this timezone is offset.
def __init__(self, offset, name=None): (source)

Construct a FixedOffsetTimeZone with a fixed offset.

Parametersoffseta delta representing the offset from UTC. (type: timedelta)
nameA name to be given for this timezone. (type: str or None)
@classmethod
def fromSignHoursMinutes(cls, sign, hours, minutes): (source)

Construct a FixedOffsetTimeZone from an offset described by sign ('+' or '-'), hours, and minutes.

ParameterssignA string describing the positive or negative-ness of the offset.
hoursThe number of hours in the offset. (type: int)
minutesThe number of minutes in the offset (type: int)
ReturnsA time zone with the given offset, and a name describing the offset. (type: FixedOffsetTimeZone)
NoteFor protocol compatibility with AMP, this method never uses 'Z'
@classmethod
def fromLocalTimeStamp(cls, timeStamp): (source)

Create a time zone with a fixed offset corresponding to a time stamp in the system's locally configured time zone.

ParameterstimeStampa time stamp (type: int)
Returnsa time zone (type: FixedOffsetTimeZone)
def utcoffset(self, dt): (source)

Return this timezone's offset from UTC.

def dst(self, dt): (source)

Return a zero datetime.timedelta for the daylight saving time offset, since there is never one.

def tzname(self, dt): (source)

Return a string describing this timezone.

API Documentation for Twisted, generated by pydoctor at 2017-09-23 19:45:03.