摘要: 下面介绍C#生成日期与时间的方法 //获取当前时间 DateTime now = DateTime.Now; int year = now.Year; int month = now.Month; int day = now.Day; int hour = now.Hour; //DateTime 阅读全文
posted @ 2021-10-30 18:22 Zeng。 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: 下面介绍C#生成日期与时间的方法 主要涉及到2个类,DateTime 和 TimeSpan //获取当前时间 DateTime now = DateTime.Now; int year = now.Year; int month = now.Month; int day = now.Day; int 阅读全文
posted @ 2021-10-30 18:19 Zeng。 阅读(295) 评论(0) 推荐(0) 编辑