AfxFileTimeToTimeStrfunction
Converts a FILETIME type to a string containing the time based on the specified mask, e.g. "hh':'mm':'ss".
Syntax
FUNCTION AfxFileTimeToTimeStr (BYREF ft AS FILETIME, BYREF wszMask AS WSTRING, BYVAL lcid AS LCID = LOCALE_USER_DEFAULT) AS DWSTRING
Parameters
| Name | Description | |
|---|---|---|
ft | A FILETIME structure. | |
wszMask | A picture string that is used to form the time. | |
lcid | Optional. The language identifier used for the conversion. Default is LOCALE_USER_DEFAULT. |
Return value
The formatted time.
Description
Converts a FILETIME type to a string containing the time based on the specified mask, e.g. "hh':'mm':'ss".
The application can use the following elements to construct a format picture string. If spaces are used to separate the elements in the format string, these spaces appear in the same location in the output string. The letters must be in uppercase or lowercase as shown, for example, "ss", not "SS". Characters in the format string that are enclosed in single quotation marks appear in the same location and unchanged in the output string.
Reference
- Include file
AfxTime.inc - Defined in AfxNova/AfxTime.inc:1050
- Documented in DateTime/DateTime Procedures.md
- Topic: Date and Time Procedures