文章详情

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


相关阅读 更多 +
排行榜 更多 +
山地狂飙无广告版

山地狂飙无广告版

赛车竞速 下载
约战精灵再临bilibili版

约战精灵再临bilibili版

冒险解谜 下载
约战精灵再临正版手游

约战精灵再临正版手游

冒险解谜 下载