Opc.Ua.Com.ComUtils.GetDateTime C# (CSharp) Method

GetDateTime() public static method

Unmarshals a WIN32 FILETIME from a pointer.
public static GetDateTime ( IntPtr pFiletime ) : System.DateTime
pFiletime System.IntPtr A pointer to a FILETIME structure.
return System.DateTime
		public static DateTime GetDateTime(IntPtr pFiletime)
		{
			if (pFiletime == IntPtr.Zero)
			{
				return DateTime.MinValue;
			}

			return GetDateTime((System.Runtime.InteropServices.ComTypes.FILETIME)Marshal.PtrToStructure(pFiletime, typeof(System.Runtime.InteropServices.ComTypes.FILETIME)));
		}

Same methods

ComUtils::GetDateTime ( System filetime ) : System.DateTime