AdsGetFileDate

Returns the last-modified date of a file as "YYYYMMDD".

Harbour-style name: oads_FDate (see Server filesystem).

Syntax

UNSIGNED32 AdsGetFileDate(ADSHANDLE hConnect, UNSIGNED8 *pucName,
                          UNSIGNED8 *pucDate, UNSIGNED16 *pusLen);

Parameters

Parameter Type Description
hConnect ADSHANDLE Connection handle (0 = default).
pucName UNSIGNED8* Relative file path.
pucDate UNSIGNED8* Buffer for the date string.
pusLen UNSIGNED16* In/out length; need at least 9.

Return Value

AE_SUCCESS (0). AE_INSUFFICIENT_BUFFER if too small.

Description

Pair with AdsGetFileTime for full mtime. Harbour wrappers can convert "YYYYMMDD" to a date value.

Example

UNSIGNED8 d[16]; UNSIGNED16 n = sizeof(d);
AdsGetFileDate(hConn, (UNSIGNED8*)"x.txt", d, &n);

See Also


This site uses Just the Docs, a documentation theme for Jekyll.