UtilReadAssemblyBuildDateTime Method
Returns the DateTime that the assembly was build.
The PE header of the assembly file includes a time stamp
(in UTC time) of when it was build. this procedures
opens the assembly file, reads the header and returns the
build time.
Namespace: DHI.Mike1D.GenericAssembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
public static DateTime ReadAssemblyBuildDateTime(
Assembly assembly,
bool localtime
)
- assembly Assembly
- Assembly to read time for.
- localtime Boolean
- True if return in local time, false to return utc time
DateTimeTime of build date.
MinValue if not succeded