JCL Help:DateTimeToSystemTime@TDateTime

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a TDateTime to a TSystemTime.


Pascal

 function DateTimeToSystemTime(DateTime: TDateTime): TSystemTime; overload;
procedure DateTimeToSystemTime(DateTime: TDateTime; out SysTime: TSystemTime); overload;


Parameters

Parameters Description
DateTime: TDateTime The TDateTime to convert.


Return Value

The TDateTime converted to TSystemTime.


Description

DateTimeToSystemTime converts the supplied TDateTime to a TSystemTime, ignoring whether the supplied DateTime is UNC based or local.


See Also

FileTimeToDateTime DosDateTimeToSystemTime SystemTimeToDosDateTime DosDateTimeToDateTime


About

Unit

JclDateTime


Donator

Michael Schnell


Notes

DateTimeToSystemTime just calls the VCL procedure DateTimeToSystemTime The JCL DateTime conversion functions supplement routines found in the Delphi RTL and the Win32 API. If a conversion function is not included here it most likely can be found in either of those libraries. The overloaded procedure is identical to the procedure from SysUtils and provided for compatibility. Please keep in mind that this routine is also defined in SysUtils.pas and to succesfully use it you must ensure that either JclDateTime is listed after SysUtils in the uses clause or you prefix the call with the unit name (JclDateTime.DateTimeToSystemTime). Failure to do so may lead to a compiler error.


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page