h6. [[TerritoryManager]] h6(. » [[Territory SWI Calls|SWI Calls]] h6((. » Territory_DaylightSaving h2. Territory_DaylightSaving h5. (SWI &43077) |_<^{width:4em}. Entry | | |<^. R0 |<^. [[Territory Numbers|Territory number]], or -1 for current territory | |<^. R1 |<^. "Reason code":#reason | |<^. - |<^. Other registers dependent on reason code | |_<^{width:4em}. Exit | | |<^. - |<^. Dependent on reason code | h4(#reason). Reason codes |_<^{width:4em}. # |_<^. Action | |<^. 0 |<^. [[Territory_DaylightSaving 0|Read current DST state]] | |<^. 1 |<^. [[Territory_DaylightSaving 1|Write current DST state]] | |<^. 2 |<^. [[Territory_DaylightSaving 2|Check AutoDST support]] | |<^. 3 |<^. [[Territory_DaylightSaving 3|Apply DST rule to UTC ordinals]] | |<^. 4 |<^. [[Territory_DaylightSaving 4|Apply DST rule to UTC 5-byte time]] | |<^. 5 |<^. [[Territory_DaylightSaving 5|Get DST bounds for given year]] | h4. Use This SWI can be used to perform various operations relating to daylight saving time. h4. Notes This SWI was introduced in TerritoryManager 0.47 h4. See also * [[Territory_DaylightRules]]