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_ConvertTimeStringToOrdinals

TerritoryManager
» SWI Calls
» Territory_ConvertTimeStringToOrdinals

Territory_ConvertTimeStringToOrdinals

(SWI &43050)
Entry
R0 Territory number, or -1 for current
R1 Reason code
R2 Pointer to time string
R3 Pointer to word aligned buffer to contain ordinals (as per Date Time Ordinal Block)
Exit
R0 Preserved
R1 Preserved
R2 Preserved
R3 Preserved

Reason Codes

# Hex # String supplied in format
1 &01 %24:%MI:%SE
2 &02 %W3, %DY-%M3-%CE%YR
3 &03 %W3, %DY-%M3-%CE%YR.%24:%MI:%SE

Use

The purpose of this call is to convert a time string to time ordinals.

Notes

This SWI returns the time block as a set of useful numbers. Values not passed in the string are assigned -1 in the block.

See also

  • Date Format String Tokens
  • Date Time Ordinal Block
  • Territory Numbers
  • Territory_ConvertStandardDate
Created on August 16, 2016 08:05:50 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