D7net Mini Sh3LL v1
Current File : /var/../bin/../include/../share/doc/libaprutil1-dev/html/group___a_p_r___util___date.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Apache Portable Runtime Utility Library: Date routines</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Apache Portable Runtime Utility Library
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Date routines<div class="ingroups"><a class="el" href="group___a_p_r___util.html">APR Utility Functions</a></div></div> </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Collaboration diagram for Date routines:</div>
<div class="dyncontent">
<div class="center"><img src="group___a_p_r___util___date.png" border="0" usemap="#group______a__p__r______util______date" alt=""/></div>
<!-- MAP 0 -->
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga8be88b25f4b477ad13c4067c959411b0"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___date.html#ga8be88b25f4b477ad13c4067c959411b0">APR_DATE_BAD</a>   ((apr_time_t)0)</td></tr>
<tr class="separator:ga8be88b25f4b477ad13c4067c959411b0"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga6576e5747a46f262c54dc4286f65d6f8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___date.html#ga6576e5747a46f262c54dc4286f65d6f8">apr_date_checkmask</a> (const char *data, const char *mask)</td></tr>
<tr class="separator:ga6576e5747a46f262c54dc4286f65d6f8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gabd0ad0c1000ed8c95fb6a9660aed27c6"><td class="memItemLeft" align="right" valign="top">apr_time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___date.html#gabd0ad0c1000ed8c95fb6a9660aed27c6">apr_date_parse_http</a> (const char *date)</td></tr>
<tr class="separator:gabd0ad0c1000ed8c95fb6a9660aed27c6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaa6d4a18ff9f40c37c0f145d063c50e96"><td class="memItemLeft" align="right" valign="top">apr_time_t </td><td class="memItemRight" valign="bottom"><a class="el" href="group___a_p_r___util___date.html#gaa6d4a18ff9f40c37c0f145d063c50e96">apr_date_parse_rfc</a> (const char *date)</td></tr>
<tr class="separator:gaa6d4a18ff9f40c37c0f145d063c50e96"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga8be88b25f4b477ad13c4067c959411b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8be88b25f4b477ad13c4067c959411b0">◆ </a></span>APR_DATE_BAD</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define APR_DATE_BAD   ((apr_time_t)0)</td>
</tr>
</table>
</div><div class="memdoc">
<p>A bad date. </p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga6576e5747a46f262c54dc4286f65d6f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga6576e5747a46f262c54dc4286f65d6f8">◆ </a></span>apr_date_checkmask()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int apr_date_checkmask </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>data</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>mask</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compare a string to a mask </p><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">data</td><td>The string to compare </td></tr>
<tr><td class="paramname">mask</td><td>Mask characters (arbitrary maximum is 256 characters): <pre>
'@' - uppercase letter
'$' - lowercase letter
'&' - hex digit
'#' - digit
'~' - digit or space
'*' - swallow remaining characters
</pre> </td></tr>
</table>
</dd>
</dl>
<dl class="section remark"><dt>Remarks</dt><dd>The mask tests for an exact match for any other character </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>1 if the string matches, 0 otherwise </dd></dl>
</div>
</div>
<a id="gabd0ad0c1000ed8c95fb6a9660aed27c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabd0ad0c1000ed8c95fb6a9660aed27c6">◆ </a></span>apr_date_parse_http()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_time_t apr_date_parse_http </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>date</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Parses an HTTP date in one of three standard forms: </p><pre>
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
</pre> <dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">date</td><td>The date in one of the three formats above </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the apr_time_t number of microseconds since 1 Jan 1970 GMT, or 0 if this would be out of range or if the date is invalid. </dd></dl>
</div>
</div>
<a id="gaa6d4a18ff9f40c37c0f145d063c50e96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa6d4a18ff9f40c37c0f145d063c50e96">◆ </a></span>apr_date_parse_rfc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">apr_time_t apr_date_parse_rfc </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>date</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Parses a string resembling an RFC 822 date. This is meant to be leinent in its parsing of dates. Hence, this will parse a wider range of dates than apr_date_parse_http.</p>
<p>The prominent mailer (or poster, if mailer is unknown) that has been seen in the wild is included for the unknown formats. </p><pre>
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
Sun, 6 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
Sun, 06 Nov 94 08:49:37 GMT ; RFC 822
Sun, 6 Nov 94 08:49:37 GMT ; RFC 822
Sun, 06 Nov 94 08:49 GMT ; Unknown [drtr@ast.cam.ac.uk]
Sun, 6 Nov 94 08:49 GMT ; Unknown [drtr@ast.cam.ac.uk]
Sun, 06 Nov 94 8:49:37 GMT ; Unknown [Elm 70.85]
Sun, 6 Nov 94 8:49:37 GMT ; Unknown [Elm 70.85]
</pre><dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">date</td><td>The date in one of the formats above </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the apr_time_t number of microseconds since 1 Jan 1970 GMT, or 0 if this would be out of range or if the date is invalid. </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
AnonSec - 2021 | Recode By D7net