h6. [[TerritoryManager]] h6(. » [[Territory SWI Calls|SWI Calls]] h6((. » Territory_ConvertDateAndTime h2. Territory_ConvertDateAndTime h5. (SWI &4304B) |_<^{width:4em}. Entry | | |<^. R0 |<^. [[Territory Numbers|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 [[Date Format String Tokens|format string]] (null terminated) | |_<^{width:4em}. 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 [[Date Format String Tokens|format string]] | |<^. R4 |<^. Preserved | h4. Use The purpose of this call is to convert a 5 byte UTC time into a string, giving the date and time. h4. 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]]. h4. See also * [[Territory Numbers]] * [[Date Format String Tokens]]