Root > Reference > All Functions > GetCompilationDate

Function GetCompilationDate

Previous pageReturn to chapter overviewNext page   

Returns the compilation date of the specified executable module.

 

Unit

EModules

 

Syntax

 

Code (Delphi)

function GetCompilationDate(

const AModule: HINST;

const ALocalTime: Boolean;

out ADate: TDateTime

): Boolean;

 

Parameters

AModule [in]

A handle of any loaded module in the current process. Typical value is HInstance.

 

ALocalTime [in]

Pass True if you want to get compilation date in your current time zone; pass False if you want to get compilation date in GMT/UTC.

 

ADate [out]

The compilation date of the specified module.

 

Return value

True if function was able to obtain the compilation date. False otherwise. Function should always succeed if called for EurekaLog-enabled module. Function could fail if invalid handle is passed, if module is not EurekaLog-enabled module, and module does not have valid date in its headers.

 

Remarks

This function reads post-processing date (almost the same as compilation date) from EurekaLog's embedded data for the module. If module does not have EurekaLog embedded - then the function tries to read date from module's PE headers.

 

Note

If module does not have EurekaLog injected - then it may not always be possible to retrieve date in the correct time zone.

 

See also

__DATE__ function
__TIME__ function



Send feedback... Build date: 2023-09-11
Last edited: 2023-09-11
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_function_emodules_getcompilationdate.php