System.SysUtils.DateTimeToSystemTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure DateTimeToSystemTime(const DateTime: TDateTime; var SystemTime: TSystemTime);

C++

extern DELPHI_PACKAGE void __fastcall DateTimeToSystemTime(const System::TDateTime DateTime, Winapi::Windows::TSystemTime &SystemTime);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

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

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

See Also