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.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public static DateTime ReadAssemblyBuildDateTime(
	Assembly assembly,
	bool localtime
)

Parameters

assembly  Assembly
Assembly to read time for.
localtime  Boolean
True if return in local time, false to return utc time

Return Value

DateTime
Time of build date. MinValue if not succeded

See Also