RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Territory_ReadCalendarInformation

TerritoryManager
» SWI Calls
» Territory_ReadCalendarInformation

Territory_ReadCalendarInformation

(SWI &4305F)
Entry
R0 Territory number, or -1 for current
R1 Pointer to block of memory containing UTC Time (5 bytes in size)
R2 Pointer to block of memory (12 words in size)
Exit
R0 Preserved
R1 Preserved
R2 Preserved

Output Buffer

Offset Value
0 Number of first working day in the week
4 Number of last working day in the week
8 Number of months in the current year
12 Number of days in the current month
16 Maximum length of AM/PM string
20 Maximum length of WE string
24 Maximum length of W3 string
28 Maximum length of DY string
32 Maximum length of ST string (may be zero)
36 Maximum length of MO string
40 Maximum length of M3 string
44 Maximum length of TZ string

Use

The purpose of this call is to return various information about the given territory’s calendar.

Notes

An explanation of all the different Date format strings tokens is available.

See also

  • Date Format String Tokens
  • Territory Numbers
Created on August 16, 2016 13:36:32 by Alan Robertson (52) (49.192.12.193)
Edit | Views: Print | Source | Linked from: Territory SWI Calls

Search the Wiki

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys