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
| Attribute | Type | Description |
|---|---|---|
| seconds | i32 | The total offset from UTC in seconds, used to calculate local time adjustments. |
Constructor
Signature
def TzInfo(
seconds: int
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| seconds | int | The offset from UTC in seconds. |
Signature
def TzInfo(
seconds: int
)
Parameters
| Name | Type | Description |
|---|---|---|
| seconds | int | The number of seconds to offset from UTC, representing the time zone difference. |