在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
// 包括所有的date/time
2:
class testDateTime
4: {
void Main()
6: {
7: DateTime CurrTime = DateTime.Now;
8:
);
10:
// Short date mm/dd/yyyy
// Long date day, month dd, yyyy
// Full date/short time day, month dd, yyyy hh:mm
// Full date/full time day, month dd, yyyy HH:mm:ss AM/PM
// Short date/short time mm/dd/yyyy HH:mm
// Short date/long time mm/dd/yyyy hh:mm:ss
// Month dd
// ddd Month yyyy hh:mm:ss GMT
// yyyy-mm-dd hh:mm:ss can be sorted!
// Short time hh:mm AM/PM
// Long time hh:mm:ss AM/PM
// yyyy-mm-dd hh:mm:ss universal/sortable
// day, month dd, yyyy hh:mm:ss AM/PM
// Month, yyyy
25: Console.WriteLine();
// number of month
// full name of day
// 24 hour time
29:
// number of 100-nanosecond intervals that have elapsed since 1/1/0001, 12:00am
// useful for time-elapsed measurements
+ CurrTime.Ticks);
33:
// wait
35: }
36: }
|
请发表评论