在C ++中获取文件的创建日期和时间 [英] Get the creation date and time of a file in c++

查看:70
本文介绍了在C ++中获取文件的创建日期和时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何获取创建文件的日期和时间.

将创建的日期和时间与当前系统日期和时间进行比较.

并找到已创建文件的天数.

任何人都可以对此问题有一个想法.

请帮我看一下示例示例.

在此先感谢您.

Hi,

How to get the Date and Time of the File created.

Compare the Created Date and Time with the Current System Date and Time.

and find how many Number of Days does the File has been created.

Can anyone having one idea regarding this issue.

Help me with the sample example.

Thanks in advance.

推荐答案

看看这些链接:

http://msdn.microsoft.com/en-us/library/aa364946.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/aa365739.aspx [ ^ ]

哦,为了比较日期... http://stackoverflow.com/questions/1552787/compare -dates-in-c [^ ]

祝你好运!
Take a look at those links:

http://msdn.microsoft.com/en-us/library/aa364946.aspx[^]

http://msdn.microsoft.com/en-us/library/aa365739.aspx[^]

Oh, and in order to compare dates... http://stackoverflow.com/questions/1552787/compare-dates-in-c[^]

Good luck!


这篇关于在C ++中获取文件的创建日期和时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆