AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     territory number, or -1 for current
     R1 =     0 = read current DST state
              1 = write current DST state
              2 = supported
              3 = apply rule to ordinals
              4 = apply rule to time
              5 = get bounds for given year

This call returns details on the daylight saving applicable in the given territory.
Read current DST state
<=     R0 =     state
           b0 = DST active when set
           b1 = DST managed automatically when set

This is equivalent to the *STATUS command.
Write current DST state
=>     R2 =     new state
           b0 = DST active when set
           b1 = DST managed automatically when set

This is equivalent to the *CONFIGURE command.
Supported
<=     R0 =     1 if the territory supports this API (error or 0 if not)
Apply rule to ordinals
=>     R2 =     timezone within territory
     R3 =     buffer containing UTC time ordinals
<=     R0 =     state
           b0 = DST active when set
Apply rule to time
=>     R2 =     timezone within territory
     R3 =     buffer containing UTC time
<=     R0 =     state
           b0 = DST active when set
Get bounds for given year
=>     R2 =     timezone within territory
     R3 =     year, or -1 for current
     R4 =     5 byte buffer for DST start time
     R5 =     5 byte buffer for DST end time

Remember that in the southern hemisphere DST ends earlier in the year than it starts, don't assume the end time is greater than the start in that case.

[sh-index] Back to list of manuals