Help Center

AfxMakeTime64function

Converts the local time to a calendar value.

DateTimefunctionAfxTime.incdocumented

Syntax

FUNCTION AfxMakeTime64 (BYREF _tm AS tm) AS LONGLONG

Parameters

NameDescription
tmA tm structure.

Return value

The converted time.

Description

Converts the local time to a calendar value.

The fields of the structure type tm store the following values, each of which is an int:

tm_sec : Seconds after minute (0 – 59).
tm_min : Minutes after hour (0 – 59).
tm_hour : Hours after midnight (0 – 23).
tm_mday : Day of month (1 – 31).
tm_mon : Month (0 – 11; January = 0).
tm_year : Year (current year minus 1900).
tm_wday : Day of week (0 – 6; Sunday = 0).
tm_yday : Day of year (0 – 365; January 1 = 0).
tm_isdst : Positive value if daylight saving time is in effect; 0 if daylight saving time is not in effect; negative value if status of daylight saving time is unknown.

Reference

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