Help Center

AfxSystemTimeToTimeStrfunction

Converts a SYSTEMTIME type to a string containing the time based on the specified mask, e.g. "hh':'mm':'ss".

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxSystemTimeToTimeStr (BYREF st AS SYSTEMTIME, BYREF wszMask AS WSTRING, BYVAL lcid AS LCID = LOCALE_USER_DEFAULT) AS DWSTRING

Parameters

NameDescription
stA SYSTEMTIME structure.
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 time.

Description

Converts a SYSTEMTIME type to a string containing the 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:1073
  • Documented in DateTime/DateTime Procedures.md
  • Topic: Date and Time Procedures