文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
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;
}


相关阅读 更多 +
排行榜 更多 +
战争警告中文版

战争警告中文版

策略塔防 下载
小小驯龙师正版

小小驯龙师正版

模拟经营 下载
氮气街头赛车最新版本

氮气街头赛车最新版本

赛车竞速 下载