Click or drag to resize

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.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public static DateTime ReadAssemblyBuildDateTime(
	Assembly assembly,
	bool localtime
)

Parameters

assembly
Type: System.ReflectionAssembly
Assembly to read time for.
localtime
Type: SystemBoolean
True if return in local time, false to return utc time

Return Value

Type: DateTime
Time of build date. MinValue if not succeded
See Also