Ejemplo n.º 1
0
        public AssemblyDateTimeAttribute()
        {
#if EAGLE
            //
            // NOTE: This should be reliable.
            //
            uint timeStamp = 0;

            if (FileOps.GetPeFileTimeStamp(
                    GlobalState.GetAssemblyLocation(), ref timeStamp) &&
                TimeOps.SecondsToDateTime(
                    timeStamp, ref dateTime, TimeOps.PeEpoch))
            {
                return;
            }
#endif

            dateTime = DateTime.MinValue;
        }