📄 time.h
字号:
<!doctype html public "-//W3C//DTD HTML 3.2//EN"><html><head><title>Linux/include/time.h</title><meta http-equiv=Content-Type content="text/html; charset=gb2312"><base href="http://oldlinux.org/lxr/http/"></head><body bgcolor=white><div align=center> [<b><i>源代码浏览</i></b>] [<a href="diff/include/time.h">区别标定</a>] [<a href="ident">标识符搜索</a>] [<a href="search">文本搜索</a>] [<a href="find">文件搜索</a>]</div><h1 align=center> <a href="http:/"> OldLinux</a> <a href="http:blurb.html"> 交叉引用</a><br> <a href="source/">Linux</a>/<a href="source/include/">include</a>/<a href="source/include/time.h">time.h</a></h1><div align=center> <b>版本:</b> [<a href="source/include/time.h?v=1.0">1.0</a>] [<a href="source/include/time.h?v=0.99.11">0.99.11</a>] [<a href="source/include/time.h?v=0.99">0.99</a>] [<a href="source/include/time.h?v=0.97">0.97</a>] [<a href="source/include/time.h?v=0.96a">0.96a</a>] [<a href="source/include/time.h?v=0.95">0.95</a>] [<a href="source/include/time.h?v=0.12">0.12</a>] [<b><i>0.11</i></b>] [<a href="source/include/time.h?v=0.01">0.01</a>] <br> <b>体系结构:</b> [<b><i>i386</i></b>] <br></div><hr><pre> <a name=L1 href="source/include/time.h#L1">1</a> #ifndef <a href="ident?i=_TIME_H">_TIME_H</a> <a name=L2 href="source/include/time.h#L2">2</a> #define <a href="ident?i=_TIME_H">_TIME_H</a> <a name=L3 href="source/include/time.h#L3">3</a> <a name=L4 href="source/include/time.h#L4">4</a> #ifndef <a href="ident?i=_TIME_T">_TIME_T</a> <a name=L5 href="source/include/time.h#L5">5</a> #define <a href="ident?i=_TIME_T">_TIME_T</a> <a name=L6 href="source/include/time.h#L6">6</a> typedef long <a href="ident?i=time_t">time_t</a>; <a name=L7 href="source/include/time.h#L7">7</a> #endif <a name=L8 href="source/include/time.h#L8">8</a> <a name=L9 href="source/include/time.h#L9">9</a> #ifndef <a href="ident?i=_SIZE_T">_SIZE_T</a> <a name=L10 href="source/include/time.h#L10">10</a> #define <a href="ident?i=_SIZE_T">_SIZE_T</a> <a name=L11 href="source/include/time.h#L11">11</a> typedef unsigned int <a href="ident?i=size_t">size_t</a>; <a name=L12 href="source/include/time.h#L12">12</a> #endif <a name=L13 href="source/include/time.h#L13">13</a> <a name=L14 href="source/include/time.h#L14">14</a> #define <a href="ident?i=CLOCKS_PER_SEC">CLOCKS_PER_SEC</a> 100 <a name=L15 href="source/include/time.h#L15">15</a> <a name=L16 href="source/include/time.h#L16">16</a> typedef long <a href="ident?i=clock_t">clock_t</a>; <a name=L17 href="source/include/time.h#L17">17</a> <a name=L18 href="source/include/time.h#L18">18</a> struct <a href="ident?i=tm">tm</a> { <a name=L19 href="source/include/time.h#L19">19</a> int tm_sec; <a name=L20 href="source/include/time.h#L20">20</a> int tm_min; <a name=L21 href="source/include/time.h#L21">21</a> int tm_hour; <a name=L22 href="source/include/time.h#L22">22</a> int tm_mday; <a name=L23 href="source/include/time.h#L23">23</a> int tm_mon; <a name=L24 href="source/include/time.h#L24">24</a> int tm_year; <a name=L25 href="source/include/time.h#L25">25</a> int tm_wday; <a name=L26 href="source/include/time.h#L26">26</a> int tm_yday; <a name=L27 href="source/include/time.h#L27">27</a> int tm_isdst; <a name=L28 href="source/include/time.h#L28">28</a> }; <a name=L29 href="source/include/time.h#L29">29</a> <a name=L30 href="source/include/time.h#L30">30</a> <a href="ident?i=clock_t">clock_t</a> <a href="ident?i=clock">clock</a>(void); <a name=L31 href="source/include/time.h#L31">31</a> <a href="ident?i=time_t">time_t</a> <a href="ident?i=time">time</a>(<a href="ident?i=time_t">time_t</a> * tp); <a name=L32 href="source/include/time.h#L32">32</a> double <a href="ident?i=difftime">difftime</a>(<a href="ident?i=time_t">time_t</a> time2, <a href="ident?i=time_t">time_t</a> time1); <a name=L33 href="source/include/time.h#L33">33</a> <a href="ident?i=time_t">time_t</a> <a href="ident?i=mktime">mktime</a>(struct <a href="ident?i=tm">tm</a> * tp); <a name=L34 href="source/include/time.h#L34">34</a> <a name=L35 href="source/include/time.h#L35">35</a> char * <a href="ident?i=asctime">asctime</a>(const struct <a href="ident?i=tm">tm</a> * tp); <a name=L36 href="source/include/time.h#L36">36</a> char * <a href="ident?i=ctime">ctime</a>(const <a href="ident?i=time_t">time_t</a> * tp); <a name=L37 href="source/include/time.h#L37">37</a> struct <a href="ident?i=tm">tm</a> * <a href="ident?i=gmtime">gmtime</a>(const <a href="ident?i=time_t">time_t</a> *tp); <a name=L38 href="source/include/time.h#L38">38</a> struct <a href="ident?i=tm">tm</a> *<a href="ident?i=localtime">localtime</a>(const <a href="ident?i=time_t">time_t</a> * tp); <a name=L39 href="source/include/time.h#L39">39</a> <a href="ident?i=size_t">size_t</a> <a href="ident?i=strftime">strftime</a>(char * s, <a href="ident?i=size_t">size_t</a> smax, const char * fmt, const struct <a href="ident?i=tm">tm</a> * tp); <a name=L40 href="source/include/time.h#L40">40</a> void <a href="ident?i=tzset">tzset</a>(void); <a name=L41 href="source/include/time.h#L41">41</a> <a name=L42 href="source/include/time.h#L42">42</a> #endif <a name=L43 href="source/include/time.h#L43">43</a> </pre><hr><div align=center> [<b><i>源代码浏览</i></b>] [<a href="diff/include/time.h">区别标定</a>] [<a href="ident">标识符搜索</a>] [<a href="search">文本搜索</a>] [<a href="find">文件搜索</a>] </div><hr>本网页由 <a href="http:blurb.html">LXR引擎</a> 自动生成.<br></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -