Beagrep.Util.FileSystem.GetLastWriteTimeUtc C# (CSharp) Метод

GetLastWriteTimeUtc() публичный статический Метод

public static GetLastWriteTimeUtc ( string path ) : System.DateTime
path string
Результат System.DateTime
        public static DateTime GetLastWriteTimeUtc(string path)
        {
            if (path == null)
                throw new ArgumentNullException ("path");

            if (File.Exists (path))
                return File.GetLastWriteTimeUtc (path);
            else if (Directory.Exists (path))
                return Directory.GetLastWriteTimeUtc (path);
            else
                return new DateTime (1601, 1, 1, 0, 0, 0, DateTimeKind.Utc);
        }