h6. [[TerritoryManager]] h6(. » [[Territory SWI Calls|SWI Calls]] h6((. » [[Territory_DaylightSaving]] h6(((. » Territory_DaylightSaving 5 h2. Territory_DaylightSaving 5 h5. (SWI &43077) |_<^{width:4em}. Entry | | |<^. R0 |<^. [[Territory Numbers|Territory number]], or -1 for current territory | |<^. R1 |<^. 5 (reason code) | |<^. R2 |<^. Timezone within territory | |<^. R3 |<^. Year, or -1 for current | |<^. R4 |<^. Pointer to buffer to receive UTC 5-byte time for when DST starts | |<^. R5 |<^. Pointer to buffer to receive UTC 5-byte time for when DST ends | |_<^{width:4em}. Exit | | |<^. - |<^. Buffers at R4 and R5 updated | h4. Use This SWI can be used to determine when DST starts and stops for a given year. h4. Notes The returned time values will be within the indicated year. Depending on the territory, this may result in the end time being before the start time; e.g. territories in the southern hemisphere. An error will be returned if the territory module does not have sufficient knowledge of the DST rules for the indicated year (error &197, "No rule for given timezone") This SWI was introduced in TerritoryManager 0.47 h4. See also * [[Territory_DaylightSaving]]