文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>C语言实例64:时间函数

C语言实例64:时间函数

时间:2010-07-04  来源:hnrainll

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(int argc, char *argv[])
{
    struct tm *local;
    time_t tm;
    tm = time(NULL);
    local = localtime(&tm);
    printf("Local time and date: %s\n", asctime(local));

    local = gmtime(&tm);
    printf("UTC time and date: %s\n", asctime(local));

    system("pause");
    return 0;
}


相关阅读 更多 +
排行榜 更多 +
僵尸运行3d城市逃生

僵尸运行3d城市逃生

冒险解谜 下载
顶尖猎人罗迪和凯茜

顶尖猎人罗迪和凯茜

冒险解谜 下载
火柴人飞爪忍者

火柴人飞爪忍者

冒险解谜 下载