Skip to content

Latest commit

 

History

History
63 lines (43 loc) · 1.38 KB

StrFromTimeInterval.md

File metadata and controls

63 lines (43 loc) · 1.38 KB

Home

Function name : StrFromTimeInterval

Group: String - Library: shlwapi


Converts a time interval, specified in milliseconds, to a string.


Code examples:

Time in milliseconds represented as string (e.g. 1 hour 24 min 36 sec)

Declaration:

int StrFromTimeInterval(
    LPTSTR pszOut,
    UINT cchMax,
    DWORD dwTimeMS,
    int digits
    );
  

FoxPro declaration:

DECLARE INTEGER StrFromTimeInterval IN Shlwapi;
	STRING @ pszOut,;
   	INTEGER  cchMax,;
   	INTEGER  dwTimeMS,;
	INTEGER  digits  

Parameters:

pszOut [out] Pointer to a character buffer that receives the converted string.

cchMax [in] Size of pszOut, in characters. If cchMax is set to zero, StrFromTimeInterval will return the minimum size of the character buffer needed to hold the converted string. In this case, pszOut will not contain the converted string.

dwTimeMS [in] Time interval, in milliseconds.

digits [in] Maximum number of digits to be represented in pszOut.


Return value:

Returns the number of characters in pszOut, excluding the NULL terminator.


Comments:

An example of this function"s return: 3 hour 07 min 21 sec