This is a preview version of the DisplayLink DL-7450 Software Development Kit Documentation. The functionality that is described and made available in this version is subject to addition, removal or change without warning.

class timezone – Represents a fixed offset time zone

The timezone class is a subclass of tzinfo, each instance of which represents a time zone defined by a fixed offset from UTC.

Note that these timezones do not have any offset capability beyond the fixed offset provided during construction. To represent such a timezone, such as a timezone with daylight saving time, a subclass of tzinfo must be created.

class datetime.timezone(offset, name=None)

Construct a timezone object with a fixed timedelta offset from UTC. An optional name may be provided, which is a string representing the time zone name.

dst(dt)

As these classes are not aware of daylight saving time, this method always returns None.

fromutc(dt)

Convert a UTC time given by dt to the local time in this timezone by adding its offset.

isoformat(dt)

Return a string representing the time zone in ISO 8601 format.

tzname(dt)

Return the time zone name as a string, or None if the time zone name isn’t known.

utcoffset(dt)

The timedelta representing the timezone’s UTC offset.