社区
C#
帖子详情
C#中,用System.DateTime.Now.MilliSecond得到的毫秒是100000进制的吗?
younglion
2004-06-30 01:51:29
rt,做一程序,要计算时间,结果,用System.DateTime.Now.MilliSecond取得时间居然是5位的int呀,我记得毫秒不是1000进制的吗?有谁知道这个问题呀?
...全文
847
2
打赏
收藏
C#中,用System.DateTime.Now.MilliSecond得到的毫秒是100000进制的吗?
rt,做一程序,要计算时间,结果,用System.DateTime.Now.MilliSecond取得时间居然是5位的int呀,我记得毫秒不是1000进制的吗?有谁知道这个问题呀?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
爵士萨克斯风
2004-06-30
打赏
举报
回复
System.DateTime.Now.MilliSecond返回的是一分钟之内的毫秒数,也就是取时间的那一刻的毫秒值。它应该是介于0~999直接的一个数值。
小贵子88
2004-06-30
打赏
举报
回复
不对,你肯定取错了
System.DateTime.Now.MilliSecond返回的是毫秒,0-999之间
试试下面的
Console.WriteLine(System.DateTime.Now.Millisecond.ToString());
c#
.net常用函数列表.doc
超难得的超简单的资料 1、
DateTime
数字型 System.
DateTime
currentTime=new System.
DateTime
(); 1.1 取当前年月日时分秒 currentTime=System.
DateTime
.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Se
cond
; 1.8 取当前
毫秒
int
毫秒
=currentTime.Mill
ise
cond
;
c#
.net常用函数列表
c#
.net常用函数列表 1、
DateTime
数字型 System.
DateTime
currentTime=new System.
DateTime
(); 1.1 取当前年月日时分秒 currentTime=System.
DateTime
.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Se
cond
; 1.8 取当前
毫秒
int
毫秒
=currentTime.Mill
ise
cond
; (变量可用
中
文)
Net网站开发必学知识点(基于
c#
和razor)、razor教程
本课程主要基于Visual Studio2019下讲解net网站开发必备的知识点:网页
中
表单的使用、Request对象、
DateTime
对象、cookie的读写、在线编辑器的使用、图片上传、数据库的增删改查、分页的原理和实现、简易信息系统实战;基于Razor和
c#
语法讲解。
C#
函数方法集(经典)TmT
1、
DateTime
数字型 System.
DateTime
currentTime=new System.
DateTime
(); 1.1 取当前年月日时分秒 currentTime=System.
DateTime
.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Se
cond
; 1.8 取当前
毫秒
int
毫秒
=currentTime.Mill
ise
cond
; (变量可用
中
文)
C#
函数方法集 DataTable,DataView和DataGrid
中
一些容易混淆的概念,数据库连接大全
1、
DateTime
数字型 System.
DateTime
currentTime=new System.
DateTime
(); 1.1 取当前年月日时分秒 currentTime=System.
DateTime
.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int 日=currentTime.Day; 1.5 取当前时 int 时=currentTime.Hour; 1.6 取当前分 int 分=currentTime.Minute; 1.7 取当前秒 int 秒=currentTime.Se
cond
; 1.8 取当前
毫秒
int
毫秒
=currentTime.Mill
ise
cond
; (变量可用
中
文)
C#
110,539
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章