📄 apr__time_8h-source.html
字号:
<a name="l00117"></a><a class="code" href="structapr__time__exp__t.html#o10">00117</a> apr_int32_t tm_gmtoff;
00118 };
00119 <span class="comment"></span>
00120 <span class="comment">/**</span>
00121 <span class="comment"> * convert an ansi time_t to an apr_time_t</span>
00122 <span class="comment"> * @param result the resulting apr_time_t</span>
00123 <span class="comment"> * @param input the time_t to convert</span>
00124 <span class="comment"> */</span>
00125 APR_DECLARE(apr_status_t) apr_time_ansi_put(apr_time_t *result,
00126 time_t input);
00127 <span class="comment"></span>
00128 <span class="comment">/**</span>
00129 <span class="comment"> * convert a time to its human readable components using an offset</span>
00130 <span class="comment"> * from GMT</span>
00131 <span class="comment"> * @param result the exploded time</span>
00132 <span class="comment"> * @param input the time to explode</span>
00133 <span class="comment"> * @param offs the number of seconds offset to apply</span>
00134 <span class="comment"> */</span>
00135 APR_DECLARE(apr_status_t) apr_time_exp_tz(<a class="code" href="structapr__time__exp__t.html">apr_time_exp_t</a> *result,
00136 apr_time_t input,
00137 apr_int32_t offs);
00138 <span class="comment"></span>
00139 <span class="comment">/**</span>
00140 <span class="comment"> * convert a time to its human readable components in GMT timezone</span>
00141 <span class="comment"> * @param result the exploded time</span>
00142 <span class="comment"> * @param input the time to explode</span>
00143 <span class="comment"> */</span>
00144 APR_DECLARE(apr_status_t) apr_time_exp_gmt(<a class="code" href="structapr__time__exp__t.html">apr_time_exp_t</a> *result,
00145 apr_time_t input);
00146 <span class="comment"></span>
00147 <span class="comment">/**</span>
00148 <span class="comment"> * convert a time to its human readable components in local timezone</span>
00149 <span class="comment"> * @param result the exploded time</span>
00150 <span class="comment"> * @param input the time to explode</span>
00151 <span class="comment"> */</span>
00152 APR_DECLARE(apr_status_t) apr_time_exp_lt(<a class="code" href="structapr__time__exp__t.html">apr_time_exp_t</a> *result,
00153 apr_time_t input);
00154 <span class="comment"></span>
00155 <span class="comment">/**</span>
00156 <span class="comment"> * Convert time value from human readable format to a numeric apr_time_t </span>
00157 <span class="comment"> * e.g. elapsed usec since epoch</span>
00158 <span class="comment"> * @param result the resulting imploded time</span>
00159 <span class="comment"> * @param input the input exploded time</span>
00160 <span class="comment"> */</span>
00161 APR_DECLARE(apr_status_t) apr_time_exp_get(apr_time_t *result,
00162 <a class="code" href="structapr__time__exp__t.html">apr_time_exp_t</a> *input);
00163 <span class="comment"></span>
00164 <span class="comment">/**</span>
00165 <span class="comment"> * Convert time value from human readable format to a numeric apr_time_t that</span>
00166 <span class="comment"> * always represents GMT</span>
00167 <span class="comment"> * @param result the resulting imploded time</span>
00168 <span class="comment"> * @param input the input exploded time</span>
00169 <span class="comment"> */</span>
00170 APR_DECLARE(apr_status_t) apr_time_exp_gmt_get(apr_time_t *result,
00171 <a class="code" href="structapr__time__exp__t.html">apr_time_exp_t</a> *input);
00172 <span class="comment"></span>
00173 <span class="comment">/**</span>
00174 <span class="comment"> * Sleep for the specified number of micro-seconds.</span>
00175 <span class="comment"> * @param t desired amount of time to sleep.</span>
00176 <span class="comment"> * @warning May sleep for longer than the specified time. </span>
00177 <span class="comment"> */</span>
00178 APR_DECLARE(<span class="keywordtype">void</span>) apr_sleep(apr_interval_time_t t);
00179 <span class="comment"></span>
00180 <span class="comment">/** length of a RFC822 Date */</span>
<a name="l00181"></a><a class="code" href="group__apr__time.html#ga27">00181</a> #define APR_RFC822_DATE_LEN (30)<span class="comment"></span>
00182 <span class="comment">/**</span>
00183 <span class="comment"> * apr_rfc822_date formats dates in the RFC822</span>
00184 <span class="comment"> * format in an efficient manner. It is a fixed length</span>
00185 <span class="comment"> * format which requires the indicated amount of storage,</span>
00186 <span class="comment"> * including the trailing NUL terminator.</span>
00187 <span class="comment"> * @param date_str String to write to.</span>
00188 <span class="comment"> * @param t the time to convert </span>
00189 <span class="comment"> */</span>
00190 APR_DECLARE(apr_status_t) apr_rfc822_date(<span class="keywordtype">char</span> *date_str, apr_time_t t);
00191 <span class="comment"></span>
00192 <span class="comment">/** length of a CTIME date */</span>
<a name="l00193"></a><a class="code" href="group__apr__time.html#ga28">00193</a> #define APR_CTIME_LEN (25)<span class="comment"></span>
00194 <span class="comment">/**</span>
00195 <span class="comment"> * apr_ctime formats dates in the ctime() format</span>
00196 <span class="comment"> * in an efficient manner. it is a fixed length format</span>
00197 <span class="comment"> * and requires the indicated amount of storage including</span>
00198 <span class="comment"> * the trailing NUL terminator.</span>
00199 <span class="comment"> * Unlike ANSI/ISO C ctime(), apr_ctime() does not include</span>
00200 <span class="comment"> * a \n at the end of the string.</span>
00201 <span class="comment"> * @param date_str String to write to.</span>
00202 <span class="comment"> * @param t the time to convert </span>
00203 <span class="comment"> */</span>
00204 APR_DECLARE(apr_status_t) apr_ctime(<span class="keywordtype">char</span> *date_str, apr_time_t t);
00205 <span class="comment"></span>
00206 <span class="comment">/**</span>
00207 <span class="comment"> * formats the exploded time according to the format specified</span>
00208 <span class="comment"> * @param s string to write to</span>
00209 <span class="comment"> * @param retsize The length of the returned string</span>
00210 <span class="comment"> * @param max The maximum length of the string</span>
00211 <span class="comment"> * @param format The format for the time string</span>
00212 <span class="comment"> * @param tm The time to convert</span>
00213 <span class="comment"> */</span>
00214 APR_DECLARE(apr_status_t) apr_strftime(<span class="keywordtype">char</span> *s, apr_size_t *retsize,
00215 apr_size_t max, const <span class="keywordtype">char</span> *format,
00216 <a class="code" href="structapr__time__exp__t.html">apr_time_exp_t</a> *tm);
00217 <span class="comment"></span>
00218 <span class="comment">/**</span>
00219 <span class="comment"> * Improve the clock resolution for the lifetime of the given pool.</span>
00220 <span class="comment"> * Generally this is only desireable on benchmarking and other very</span>
00221 <span class="comment"> * time-sensitive applications, and has no impact on most platforms.</span>
00222 <span class="comment"> * @param p The pool to associate the finer clock resolution </span>
00223 <span class="comment"> */</span>
00224 APR_DECLARE(<span class="keywordtype">void</span>) apr_time_clock_hires(apr_pool_t *p);
00225 <span class="comment"></span>
00226 <span class="comment">/** @} */</span>
00227
00228 #ifdef __cplusplus
00229 }
00230 #endif
00231
00232 #endif <span class="comment">/* ! APR_TIME_H */</span>
</div></pre><hr size="1"><address style="align: right;"><small>Generated on Mon Feb 7 13:18:25 2005 for Apache Portable Runtime by
<a href="../../../www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -