JCL Help:TimeOfDateTimeToMSecs

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the number of milliseconds in a DateTime.


Pascal

 function TimeOfDateTimeToMSecs(DateTime: TDateTime): Integer;


Parameters

Parameters Description
DateTime: TDateTime The DateTime for which you want to know the number of milliseconds.


Return Value

The number of milliseconds in the specified DateTime.


Description

Returns the number of milliseconds in a DateTime. Basically it extracts the hour, minutes and seconds from the date time and returns the result of the formula ((3600 * Hours) + (60 * Minutes) + Seconds) * 1000, but is much faster than doing it this way.


About

Unit

JclDateTime


Donator

Michael Schnell


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