C语言日期数据类型

来源:百度知道 编辑:UC知道 时间:2024/06/23 20:30:31
定义日期的数据类型 像int char一样的 有那么个date a,b,c 吗?

C里面没有日期型数据,其他的语言像VB有date型,C#有datetime型;
你可以用struct自己定义日期型数据的

没,得用结构体定义,类似
struct stime
{
unsigned second;
unsigned min;
unsigned hour;
...
}

c语言没有。
需要自己定义。
c#语言有 datetime。

有啊
struct tm 啊。
在time.h里面