RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.DateTimeToSystemTime Function

Converts a TDateTime value into the Win32 API's system time type.

Pascal
procedure DateTimeToSystemTime(const DateTime: TDateTime; var SystemTime: TSystemTime);
C++
DateTimeToSystemTime(const TDateTime DateTime, TSystemTime SystemTime);

SysUtils

Use DateTimeToSystemTime to convert a TDateTime value into a TSystemTime (Delphi) or _SYSTEMTIME (C++) value. This procedure is primarily used to convert TDateTime values for making a Windows API call. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!