使用系统日期用c语言计算最近6天 [英] using system date calculate last 6 days in c language

查看:133
本文介绍了使用系统日期用c语言计算最近6天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到大问题

在unix C语言下

i想要返回日期格式,如MM / DD / YYYY

这个函数应该返回以上格式。


使用系统日期计算最近6天意味着我明白了解释


今天日期是:06/09/2008


函数返回06/03/2008


但是当我们编写程序自动返回时,过去6天的日期意味着06/03/2008



请帮助.............

再见

madhu

i am in big problem
Under unix C Language
i want return date format like MM/DD/YYYY
this function should return above format .

using system date calculate last 6 days mean clearly i am explain

today date is :06/09/2008

the function return 06/03/2008

but when we write program automatic return the last 6 days date means 06/03/2008


please help .............

bye
madhu

推荐答案

你应该使用时钟滴答来执行此操作。

您为此编写了什么代码?

Raghu
You should use clock tick to do this.
What code u have written for this?

Raghu


使用c语言(unix)


返回格式为mm / dd / yyyy


计算过去6天意味着

使用系统日期 - 7天所以我们得到最后6天

这里没有输入自动得到回报最后6的功能天数

请帮忙,......

i想要这个源代码






谢谢

madhu






using c language (unix)

return should this format mm/dd/yyyy

calculate the last 6 days mean
using system date - 7 days so we get the last 6 days
there is no input here automatically get the return the function of last 6 days date
please help ,......
i want source code for this

please please


thanks
madhu








您应该使用时钟勾选来执行此操作。

您为此编写了什么代码?


Raghu
You should use clock tick to do this.
What code u have written for this?

Raghu


在你的unix / linux /'man ctime'中的任何系统类型中,阅读所有相关信息。
< br $>
亲切的问候,


Jos
On your unix/linux/whatever system type in ''man ctime'' and read all about it.

kind regards,

Jos


这篇关于使用系统日期用c语言计算最近6天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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