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_ConvertDateAndTime

TerritoryManager
» SWI Calls
» Territory_ConvertDateAndTime

Territory_ConvertDateAndTime

(SWI &4304B)
Entry
R0 Territory number, or -1 for current
R1 Pointer to UTC Time (5 bytes in size)
R2 Pointer to output buffer
R3 Size of buffer
R4 Pointer to format string (null terminated)
Exit
R0 Pointer to buffer (R2 on entry)
R1 Pointer to terminating zero in buffer
R2 Number of free bytes in buffer
R3 Pointer to format string
R4 Preserved

Use

The purpose of this call is to convert a 5 byte UTC time into a string, giving the date and time.

Notes

This call returns the local time, language and alphabet.

The format string is copied directly into the result buffer, except when a ‘%’ character
appears. In this case the next two characters are treated as a special field name which is
replaced by a component of the current time.

This call replaces the use of OS_ConvertDateAndTime.

See also

  • Territory Numbers
  • Date Format String Tokens
Revised on August 16, 2016 07:45:27 by Alan Robertson (52) (49.192.12.193)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: *Time, Territory SWI Calls, Date Format String Tokens

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