88
K
A
DAK
AMX Timing Control
Time/Date ASCII Formats
The Time/Date Manager procedure ajtdf can be used to format time and date into an
ASCII character string in any of several popular formats. The time and date is presented
to ajtdf in the standard AMX time/date structure. The ASCII string is returned in a
character buffer provided by the caller. See Chapter 16 for the ajtdf calling sequence.
Time can be formatted as either of:
HH:MMb
HH:MM:SSb
where: HH = hours (00 to 23)
MM = minutes (00 to 59)
SS = seconds (00 to 59)
b= space time/date are correct (century <> 0)
b= # time/date are incorrect (century = 0)
The date can be formatted as any of:
DDD MMM dd/ccyyb
DDD mm/dd/ccyyb
DDD dd MMM/ccyyb
DDD dd/mm/ccyyb
DDD ccyy/mm/ddb
where: DDD = day of week (Mon to Sun)
MMM = month (Jan to Dec)
mm = month (01 to 12)
dd = day (01 to 31)
cc = century (19 or 20)
yy = year (00 to 99)
b= space
The 4 character day-of-week (DDDb) and/or the two character century (cc)
can be omitted.
The format of time and/or date is specified by a format specification parameter, a single
byte presented to procedure ajtdf.