DateTime.Now.ToShortTimeString() DateTime.Now.TimeOfDay.ToString() DateTime.Now.ToString("HH:mm:ss") 结果: 13:12 13:12:36.7684225 13:12:36
C# 琐碎记忆 DateTime
原文:http://www.cnblogs.com/zhaoCat/p/5132058.html