Help Center

AfxUnixTimeStrfunction

Retuns the current Unix time based on the specified mask, e.g. "hh':'mm':'ss"."

DateTimefunctionAfxTime.incdoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION AfxUnixTimeStr (BYVAL unixTime AS DWORD, BYREF wszMask AS WSTRING, BYVAL lcid AS LCID = LOCALE_USER_DEFAULT) AS DWSTRING

Parameters

NameDescription
unixTimeThe Unix time value.
wszMaskA picture string that is used to form the time.
lcidOptional. The language identifier used for the conversion. Default is LOCALE_USER_DEFAULT.

Return value

The formatted Unix time.

Description

Retuns an Unix time based on the specified mask, e.g. "hh':'mm':'ss"."

Picture string used to form the time.

Example

PRINT AfxUnixTimeStr(AfxWindowsInstallDate, "hh':'mm':'ss")

Reference