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