(DateTime.Now - new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day)).TotalSeconds
秒数?
System.DateTime t = System.DateTime.Now();
t是要什么类型啊,还是单纯的取出秒数?
如果是的话就是:
string s = DateTime.Now.ToString("ss");
DateTime dt = DataTime.Now