系统时间和日期函数:

    #include <time.h>

    char *asctime(const struct tm *tm);//将tm中存放的信息转换为标准格式

    char *asctime_r(const struct tm *tm, char *buf);//分配了最少26个字节的缓冲区来存放转换后的时间

    char *ctime(const time_t *timep);//将time_t中存放的信息转换为标准格式

    char *ctime_r(const time_t *timep, char *buf);//同asctime_r

    struct tm *gtime(const time_t *timep);//将time_t结构提中的时间转换为当地时间,存放在tm结构体中

    struct tm *gtime_r(const time_t *timep, struct tm *result);//同ctime_r

    struct tm *localtime(const time_t *timep);//取当地时间,并转换为标准格式,放在tm中

    struct tm *localtime_r(const time_t *timep, struct tm *result);//取当地时间放在tm结构体的result中

    time_t mktime(struct tm *tm);//将tm所指向的结构体数据转换为从1970年1月1日0时0分0秒开始所经历的秒数

    int gettimeofday(struct timeval *tv, struct timezone *tz);//获取当前时间,放在tv中,tz用于存放相应的时钟信息

    int settimeofday(const struct timeval *tv, const struct timezone *tz);//设置当前时间和时区信息。参数同上    



    随机数产生函数:#include <stdlib.h>  void rand(void);    void srand(unsigned int seed);



大小写字母测试函数:#include <ctype.h>

         int isupper(int c);

        int isalnum(int c);

        int isalpha(int c);

        int isascii(int c);

        int isblank(int c);

        int iscntrl(int c);

        int isdigit(int c);

        int isgraph(int c);

        int islower(int c);    

        int isprint(int c);

        int ispunct(int c);

        int isspace(int c);

        int isxdigit(int c);

系统时间和日期函数:#include <time.h>

        

系统登陆用户名操作函数:

    #include <stdlib.h>

    char *getenv(const char *name);

    #include <stdlib.h>

    int unsetenv(const char *name);

    int setenv(const char *name);

单字符输出函数:

    #include <stdio.h>

    int putchar(int c);

求"不大与"整数函数

10-08常用的TIME和DATE函数以及各个函数对应的头文件的更多相关文章

  1. 基于函数的I/O操作(头文件stdio.h)

    基于函数库的I/O是C语言标准库的功能,基于系统级I/O函数实现. 系统级I/O函数对文件的标识是文件描述符,C语言标准库中对文件的标识是指向FILE结构的指针.在头文件cstdio或stdio.h中 ...

  2. gcc 头文件是用户应用程序和函数库之间的桥梁和纽带 功能的真正逻辑实现是以硬件层为基础

    gcc GCC, the GNU Compiler Collection - GNU Project - Free Software Foundation (FSF) http://gcc.gnu.o ...

  3. NSIS文字及字符串函数与头文件介绍

    原文 NSIS文字及字符串函数与头文件介绍 文字函数,顾名思义就是处理字符串的函数.使用这些字符串函数前,必须先包含头文件WordFunc.nsh.该头文件目前包含如下一些函数:WordFind.Wo ...

  4. (三)Linux Shell编程——Shell常用命令(输出、判断、循环、函数、包含)

    3. 常用命令 3.1 输出 3.1.1 echo命令 echo是Shell的一个内部指令,用于在屏幕上打印出指定的字符串.命令格式: echo arg name="coding" ...

  5. JavaScript---js语法,数据类型及方法, 数组及方法,JSON对象及方法,日期Date及方法,正则及方法,数据类型转换,运算符, 控制流程(三元运算),函数(匿名函数,自调用函数)

    day46 一丶javascript介绍 JavaScript的基础分为三个       1.ECMAScript:JavaScript的语法标准.包括变量,表达式,运算符,函数,if语句,for语句 ...

  6. oracle(sql)基础篇系列(一)——基础select语句、常用sql函数、组函数、分组函数

        花点时间整理下sql基础,温故而知新.文章的demo来自oracle自带的dept,emp,salgrade三张表.解锁scott用户,使用scott用户登录就可以看到自带的表. #使用ora ...

  7. C/C++常用头文件及函数汇总

    转自: C/C++常用头文件及函数汇总 C/C++头文件一览 C #include <assert.h> //设定插入点#include <ctype.h> //字符处理#in ...

  8. PHP常用文件函数和目录函数整理

    一.常用文件函数库 1.basename(); -- 返回路径中的文件名部分. string basename ( string $path [, string $suffix ] ) //给出一个包 ...

  9. [SQL SERVER系列]之常用函数和开窗函数介绍及实例

    本文主要介绍SQL SERVER数据库中一些常用的系统函数及其SQL SERVER 2005以上支持的开窗函数. 1.常用函数 --从字符串右边截取指定字符数 select RIGHT('HELLO' ...

  10. Oracle date timestamp 毫秒 - 时间函数总结(转)

    原文地址:Oracle date timestamp 毫秒 - 时间函数总结 yyyy-mm-dd hh24:mi:ss.ff  年-月-日 时:分:秒.毫秒 --上一月,上一年select add_ ...

随机推荐

  1. AWT,Swing,RCP 开发

    http://www.blogjava.net/youxia/category/17374.html

  2. 使用css弹性盒子模型

    提示: 当期内容不充实, 修改后再来看吧 以下称:弹性子元素: 子元素, 弹性容器: 容器 弹性盒子的属性 1. css弹性盒子模型规定了弹性元素如何在弹性容器内展示 2. 弹性元素默认显示在弹性容器 ...

  3. springboot 邮件服务

    springboot仍然在狂速发展,才五个多月没有关注,现在看官网已经到1.5.3.RELEASE版本了.准备慢慢在写写springboot相关的文章,本篇文章使用springboot最新版本1.5. ...

  4. 分布式锁实践(二)-ZooKeeper实现总结

    写在最前面 前几周写了篇 利用Redis实现分布式锁 ,今天简单总结下ZooKeeper实现分布式锁的过程.其实生产上我只用过Redis或者数据库的方式,之前还真没了解过ZooKeeper怎么实现分布 ...

  5. centos7使用tinyproxy搭建简单http(s)服务器,无用户密码验证

    1  安装 yum install tinyproxy 2 查找配置文件地址 whereis tinyproxy.conf 3 编辑配置文件 vim tinyproxy.conf 把 allow 12 ...

  6. Cmder的安装

    Cmder把conemu,git-for-windows和clink打包在一起,让你无需配置就能使用一个真正干净的Linux终端!性感的外观,强大的功能!代替了Windows原生的Cmd 1. 安裝 ...

  7. IE浏览器中不支持cookie问题

    /** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT ...

  8. Multipart polyline to single part lines

    Breaking Up Polylines  http://forums.esri.com/Thread.asp?c=93&f=987&t=74554&mc=4#msgid19 ...

  9. orchard cms 项目迁移

    删除Orchard.Web  下的 App_Data 目录,重新安装项目

  10. html 原生tab切换js

    $("#ulId li").on('click', function () { $("#li-container").children().hide(); $( ...