twisted.python._tzhelper.FixedOffsetTimeZone(tzinfo)
class documentationtwisted.python._tzhelper
View Source
(View In Hierarchy)
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. |
str
giving the name of this timezone; the name just includes how much time this
offset represents.
Construct a FixedOffsetTimeZone
with a fixed offset.
Parameters | offset | a delta representing the offset from UTC. (type: timedelta ) |
name | A name to be given for this timezone. (type: str
or None ) |
Construct a FixedOffsetTimeZone
from an offset described by sign ('+' or '-'), hours, and minutes.
Parameters | sign | A string describing the positive or negative-ness of the offset. |
hours | The number of hours in the offset. (type: int ) | |
minutes | The number of minutes in the offset (type: int ) | |
Returns | A time zone with the given offset, and a name describing the offset. (type: FixedOffsetTimeZone ) | |
Note | For protocol compatibility with AMP, this method never uses 'Z' |
Create a time zone with a fixed offset corresponding to a time stamp in the system's locally configured time zone.
Parameters | timeStamp | a time stamp (type: int ) |
Returns | a time zone (type: FixedOffsetTimeZone ) |
Return a zero datetime.timedelta
for the daylight saving
time offset, since there is never one.