社区
Delphi
帖子详情
如何将VC中的CTime转换为TDatetime ?
lgwangshu
2003-12-03 09:24:06
好像vc 中的CTime是长整形,而TDatetime为Double,
怎样转换?
...全文
74
4
打赏
收藏
如何将VC中的CTime转换为TDatetime ?
好像vc 中的CTime是长整形,而TDatetime为Double, 怎样转换?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
4 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lgwangshu
2003-12-11
打赏
举报
回复
我现在是先转成字符串,再转到另一种格式。有没有更好的办法?
whitetiger8
2003-12-07
打赏
举报
回复
不懂VC了。。。
hkbarton
2003-12-07
打赏
举报
回复
恩?不了解VC中的时间格式,如果是长整型的 每一个数位表示的意义肯定不一样,你最好看一下VC的帮助,看看VC里是怎样编码时间的,再自己写程序做转换
lgwangshu
2003-12-07
打赏
举报
回复
how?
VC
++ 时间类型
转换
: C
Time
, COle
Date
Time
,
time
_t, CString
C
Time
==>CString <br />C
Time
time
;
time
.GetCurrent
Time
(); CString str; str.Format("%s",
time
.Format("%y:%m:%d %H-%M-%S") <br />1 CString str; C
Time
t = C
Time
::...
如何在
VC
6.0
中
得到一个程序的运行时间,也就是这个程序耗费的时钟周期数// C和C++的时间编程
将T
Date
Time
对象(包含当前年月日信息)
转换
为字符串对象,函数原型如下: AnsiString __fastcall DateToStr(System::T
Date
Time
Date); 6.
Time
ToStr 将当前日期
转换
为字符串对象,函数原型如下: ...
VC
获取系统时间、程序运行时间
1.使用C
Time
类CString str;//获取系统时间C
Time
tm;tm=C
Time
::GetCurrent
Time
();str=tm.Format("现在时间是%Y年%m月%d日 %X");MessageBox(str,NULL,MB_OK);2: 得到系统时间日期(使用GetLocal
Time
)SYSTEM
TIME
st;...
VC
获取系统时间、程序运行时间【转】
VC
获取系统时间、程序运行时间 1.使用C
Time
类 CString str; //获取系统时间 C
Time
tm; tm=C
Time
::GetCurrent
Time
(); str=tm.Format("现在时间是%Y年%m月%d日 %X"); ...
VC
时间
1.使用C
Time
类 CString str; //获取系统时间 C
Time
tm; tm=C
Time
::GetCurrent
Time
(); str=tm.Format("现在时间是%Y年%m月%d日 %X"); MessageBox(str,NULL,MB_OK); ...
Delphi
5,388
社区成员
262,730
社区内容
发帖
与我相关
我的任务
Delphi
Delphi 开发及应用
复制链接
扫一扫
分享
社区描述
Delphi 开发及应用
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章