1 Star 3 Fork 0

蚂蚁 / C语言小程序(擦黑板值日)

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
time.cpp 350 Bytes
一键复制 编辑 原始数据 按行查看 历史
蚂蚁 提交于 2020-02-09 14:36 . 返回当前时间模块
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
void time();
time();
return 0;
}
void time() /*返回当前时间*/
{
time_t timep;
struct tm *p;
time (&timep);
p=gmtime(&timep);
printf("%d-%d-%d-%d:%d 一年中第 %d 天\n",1900+p->tm_year,1+p->tm_mon,p->tm_mday,8+p->tm_hour,p->tm_min,p->tm_yday);
}
C
1
https://gitee.com/lyp0001/Test_code.git
git@gitee.com:lyp0001/Test_code.git
lyp0001
Test_code
C语言小程序(擦黑板值日)
master

搜索帮助