Timezone
- 1 dst() method of timezone class in Python The class timezone holds only essential attributes and behaviour required for a time zone: an offset from UTC and a name. Apart from this it does not support any other semantics like DST. 9 Aug 2021
- 2 timezone class of datetime module in Python The timezone class implements the abstract class tzinfo in a specific way. For example, the timezone does not support Daylight saving time (DST). 9 Aug 2021
- 3 timezone constructor The timezone constructor accepts a timedelta and a name. The timedelta is the duration by which the timezone differs from the UTC. The name is a string value. 19 Aug 2021
- 4 tzname() method of timezone class The tzname() method returns the time zone string given during the construction of a timezone instance. The example creates datetime, timezone objects and prints the name of the time zone along with the UTC offset. 12 Aug 2021
- 5 utc class atrribute of timezone class The class atrribute utc returns a timezone instance corresponding the UTC. In the returned instance, the offset is zero and the name is UTC. 20 Aug 2021
- 6 utcoffset() method of timezone class in Python The utcoffset() method returns the UTC offset of a timezone information as a timedelta object. 9 Aug 2021