PosixTZ
struct PosixTZA POSIX TZ rule: a standard offset, and maybe a daylight one with the rules for when it starts and ends.
Implements Copyable, Movable
- Fields
std: Int: Seconds east of UTC.dst: Inthas_dst: Boolstart: _Ruleend: _Rule
__init__
def __init__(out self, std: Int) parse
def parse(s: String) -> Self Reads std offset [dst [offset] [,start[/time],end[/time]]]. A daylight zone without rules gets the US ones, as glibc does.
offset_at
def offset_at(self, t: Int64) -> Int last_change
def last_change(self, t: Int64) -> Int64 The latest change at or before t; Int64.MIN if none.