Help Center

AfxLocalTimeStrfunction

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

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxLocalTimeStr (BYREF wszMask AS WSTRING, BYVAL lcid AS LCID = LOCALE_USER_DEFAULT) AS DWSTRING

Parameters

NameDescription
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 current local time.

Description

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

Picture string used to form the time.

Reference

  • Include file AfxTime.inc
  • Defined in AfxNova/AfxTime.inc:335
  • Documented in DateTime/DateTime Procedures.md
  • Topic: Date and Time Procedures