标签:console 时间 write 创建 delete get 创建时间 tor let
下面资料是关于C# 获得目录创建时间的片段的代码。using System;
using System.IO;
class DirectoryCreationTime
{
public static void Main()
{
string directoryString =
Directory.GetCurrentDirectory() + @"TestDir";
Directory.CreateDirectory (directoryString);
DateTime dateTime = Directory.GetCreationTime (directoryString);
Console.WriteLine("Creation time: {0}", dateTime);
Directory.Delete (directoryString);
}
}
标签:console 时间 write 创建 delete get 创建时间 tor let
原文地址:https://blog.51cto.com/14311845/2386968