LogDoctor/docs/html/classDateTimeOps.html

208 lines
9.2 KiB
HTML
Raw Normal View History

<!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" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LogDoctor: DateTimeOps Class Reference</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 id="projectrow">
<td id="projectlogo"><img alt="Logo" src="dox_logo.png"/></td>
<td id="projectalign">
<div id="projectname">LogDoctor<span id="projectnumber">&#160;2.00</span>
</div>
<div id="projectbrief">Parse Apache2/Nginx/IIS logs and create statistics</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @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:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pri-static-methods">Static Private Member Functions</a> &#124;
<a href="classDateTimeOps-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">DateTimeOps Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p><a class="el" href="classDateTimeOps.html" title="DateTimeOps.">DateTimeOps</a>.
<a href="classDateTimeOps.html#details">More...</a></p>
<p><code>#include &lt;datetime.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a3e0808c8c395b0e9ea9240aa065b8967"><td class="memItemLeft" align="right" valign="top">static const std::vector&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateTimeOps.html#a3e0808c8c395b0e9ea9240aa065b8967">processDateTime</a> (const std::string &amp;datetime, const std::string &amp;format)</td></tr>
<tr class="memdesc:a3e0808c8c395b0e9ea9240aa065b8967"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a standardized list of items representing the given date and time. <a href="classDateTimeOps.html#a3e0808c8c395b0e9ea9240aa065b8967">More...</a><br /></td></tr>
<tr class="separator:a3e0808c8c395b0e9ea9240aa065b8967"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-static-methods" name="pri-static-methods"></a>
Static Private Member Functions</h2></td></tr>
<tr class="memitem:adb479373277de1df7e77392bffbe9c01"><td class="memItemLeft" align="right" valign="top">static const std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDateTimeOps.html#adb479373277de1df7e77392bffbe9c01">convertMonth</a> (const std::string &amp;month)</td></tr>
<tr class="memdesc:adb479373277de1df7e77392bffbe9c01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a month from the short-name to the number. <a href="classDateTimeOps.html#adb479373277de1df7e77392bffbe9c01">More...</a><br /></td></tr>
<tr class="separator:adb479373277de1df7e77392bffbe9c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p ><a class="el" href="classDateTimeOps.html" title="DateTimeOps.">DateTimeOps</a>. </p>
<p >Operations for the dates </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="adb479373277de1df7e77392bffbe9c01" name="adb479373277de1df7e77392bffbe9c01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb479373277de1df7e77392bffbe9c01">&#9670;&#160;</a></span>convertMonth()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::string DateTimeOps::convertMonth </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>month</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">private</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Converts a month from the short-name to the number. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">month</td><td>The short-name of the month </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The month number in the calendar </dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classDateTimeException.html" title="DateTimeException.">DateTimeException</a></td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="classDateTimeOps.html#a3e0808c8c395b0e9ea9240aa065b8967" title="Returns a standardized list of items representing the given date and time.">processDateTime</a> </dd></dl>
</div>
</div>
<a id="a3e0808c8c395b0e9ea9240aa065b8967" name="a3e0808c8c395b0e9ea9240aa065b8967"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e0808c8c395b0e9ea9240aa065b8967">&#9670;&#160;</a></span>processDateTime()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">const std::vector&lt; std::string &gt; DateTimeOps::processDateTime </td>
<td>(</td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>datetime</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>format</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns a standardized list of items representing the given date and time. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">datetime</td><td>The given date and time string </td></tr>
<tr><td class="paramname">format</td><td>The format of the given string </td></tr>
</table>
</dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
<table class="exception">
<tr><td class="paramname"><a class="el" href="classDateTimeException.html" title="DateTimeException.">DateTimeException</a></td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The list of items </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>logdoctor/modules/craplog/modules/datetime.h</li>
<li>logdoctor/modules/craplog/modules/datetime.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>