Skip to main content

TzInfo

This class represents a time zone offset from UTC, stored as a fixed number of seconds. It provides a simple structure for managing time zone information without complex daylight saving time transitions.

Attributes

AttributeTypeDescription
secondsi32The total offset from UTC in seconds, used to calculate local time adjustments.

Constructor

Signature

def TzInfo(
seconds: int
) - > null

Parameters

NameTypeDescription
secondsintThe offset from UTC in seconds.

Signature

def TzInfo(
seconds: int
)

Parameters

NameTypeDescription
secondsintThe number of seconds to offset from UTC, representing the time zone difference.