class twisted.python._tzhelper.FixedOffsetTimeZone(TZInfo): (source)
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 the given timezone's offset from UTC. |
Method | dst | Return a zero 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: Optional[str] ) |
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. (type: str ) |
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 | Undocumented (type: float ) |
Returns | Undocumented (type: FixedOffsetTimeZone ) |