JCL Help:LocalDateTimeToDateTime

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Converts a local TDateTime to a UNC based TDateTime


Pascal

 function LocalDateTimeToDateTime(DateTime: TDateTime): TDateTime;


Parameters

Parameters Description
DateTime: TDateTime The local TDateTime to convert to UNC based time.


Return Value

The UNC based TDateTime. If the function fails it raises an EJclDateTimeError exception.


Description

LocalDateTimeToDateTime converts a local TDateTime to a UNC (coordinated universal time) based TDateTime. The function uses the settings for the time zone and daylight saving time.


About

Unit

JclDateTime


Donator

Nick Hodges


Notes

The specified DateTime is assumed to be valid (with JCLDate negative years and dates > year 9999 are valid).


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