AdsGetFileTime
Returns the last-modified time of a file as "hh:mm:ss" (local server clock).
Harbour-style name: oads_FTime (see Server filesystem).
Syntax
UNSIGNED32 AdsGetFileTime(ADSHANDLE hConnect, UNSIGNED8 *pucName,
UNSIGNED8 *pucTime, UNSIGNED16 *pusLen);
Parameters
| Parameter | Type | Description |
|---|---|---|
hConnect |
ADSHANDLE |
Connection handle (0 = default). |
pucName |
UNSIGNED8* |
Relative file path. |
pucTime |
UNSIGNED8* |
Buffer for the time string (null-terminated). |
pusLen |
UNSIGNED16* |
In: buffer capacity. Out: length written (including NUL). Need at least 9. |
Return Value
AE_SUCCESS (0). AE_INSUFFICIENT_BUFFER (5051) if the buffer is too small (*pusLen set to required size).
Description
Uses the server (or local process) wall-clock timezone.
Example
UNSIGNED8 t[16]; UNSIGNED16 n = sizeof(t);
AdsGetFileTime(hConn, (UNSIGNED8*)"x.txt", t, &n);