18.08.2013 Views

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

(SYSLIB) Programming Reference Manual - Public Support Login ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SFDT$–System Standard Format Date and Time<br />

date<br />

time<br />

The address of a caller-specified date and time (must be in TDATE$ format). This<br />

parameter is optional.<br />

The address of a caller-specified time (must be in TIME$ format). This parameter is<br />

optional.<br />

If date or time are not included on the calling statement, the current date and time (from<br />

ER TDATE$, or current time from ER TIME$ for time format 3) is used. The calling<br />

program can use indexing, incrementation, and indirect addressing in specifying the<br />

addresses for pktaddr, date, or time, by using the $EQUF directive. See $EQUF<br />

definitions in the MASM <strong>Programming</strong> <strong>Reference</strong> <strong>Manual</strong>.<br />

Returns<br />

If the normal return is taken, SFDT$ has stored the ASCII date/time string in the buffer.<br />

The following information is returned to the caller in registers A0 to A3 and also stored in<br />

the packet at the appropriate locations:<br />

A0 The address of the SFDT$ packet<br />

A1 The number of characters in the formatted ASCII string<br />

A2 The address of the buffer containing the ASCII string<br />

A3 The character offset of the last nonspace character<br />

If the error return is taken, register A0 contains the packet address, and register A1<br />

contains the negative error code (also stored in the packet field errcode).<br />

1 The buffer length is too short for specified format(s).<br />

2 The date format index is out of range.<br />

3 The time format index is out of range.<br />

4 Both date and time formats are zero.<br />

5 An outdated version of the SFDT$ packet is being used.<br />

22–6 7833 1733–004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!