AMX 86 Procedures
K
A
DAK
315
ajtdf ajtdf
Purpose Format Time and Date as an ASCII String
Used by n Task o IS P o Timer Procedure n Restart Procedure n Exit Procedure
Setup #include "amx831sd.h"
.
.
struct amxtds tdbuf;
char ascii[26];
int format;
int n;
.
.
n = ajtdf(&tdbuf, format, ascii);
AX ES:BX DL DS:DI
Where tdbuf is an AMX time/date structure containing the time and date
(returned by ajtdg) which is to be formatted. The structure amxtds is
defined in header file AMX831SD.H (see Appendix D).
format is the format specification value described in Chapter 5.5. Only
the least significant 8 bits of format are used.
ascii is a 26-byte character array into which time and/or date will be
formatted as a null ('\0') terminated ASCII string.
Results Interrupts are untouched.
n is the number of characters stored in the ascii array, not including the
terminating null ('\0').
See Also ajtdg