tz_offset_from_tzinfo
No overview available.
def tz_offset_from_tzinfo(
tzinfo: datetime.tzinfo
) - > integer
Calculates the UTC offset in seconds from a given timezone object.
Parameters
| Name | Type | Description |
|---|---|---|
| tzinfo | datetime.tzinfo | The timezone information object used to determine the offset. |
Returns
| Type | Description |
|---|---|
integer | The total offset from UTC in seconds, where positive values represent time zones ahead of UTC. |