// Get the UTC last modification time of a directory. public static DateTime GetLastWriteTimeUtc(String path) { long time; ValidatePath(path); HandleErrorsDir(DirMethods.GetLastModification(path, out time)); return(new DateTime(time)); }
// Get a file's UTC last modification time. public static DateTime GetLastWriteTimeUtc(String path) { long ticks; Directory.ValidatePath(path); Directory.HandleErrorsFile (DirMethods.GetLastModification(path, out ticks)); return(new DateTime(ticks)); }