_time_pattern_8cpp.html 9.86 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hueplusplus: src/TimePattern.cpp File 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 style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hueplusplus
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</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">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">TimePattern.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;cstdlib&gt;</code><br />
<code>#include &lt;ctime&gt;</code><br />
<code>#include &lt;<a class="el" href="_hue_exception_macro_8h_source.html">hueplusplus/HueExceptionMacro.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="_time_pattern_8h_source.html">hueplusplus/TimePattern.h</a>&gt;</code><br />
</div><div class="textblock"><div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Include dependency graph for TimePattern.cpp:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="_time_pattern_8cpp__incl.png" border="0" usemap="#src_2_time_pattern_8cpp" alt=""/></div>
<map name="src_2_time_pattern_8cpp" id="src_2_time_pattern_8cpp">
<area shape="rect" id="node4" href="_hue_exception_macro_8h.html" title="hueplusplus/HueException\lMacro.h" alt="" coords="178,80,373,121"/>
<area shape="rect" id="node9" href="_time_pattern_8h.html" title="hueplusplus/TimePattern.h" alt="" coords="397,87,591,114"/>
<area shape="rect" id="node5" href="_hue_exception_8h.html" title="HueException.h" alt="" coords="233,169,357,196"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacehueplusplus"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus.html">hueplusplus</a></td></tr>
<tr class="memdesc:namespacehueplusplus"><td class="mdescLeft">&#160;</td><td class="mdescRight">Namespace for the hueplusplus library. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacehueplusplus_1_1time"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html">hueplusplus::time</a></td></tr>
<tr class="memdesc:namespacehueplusplus_1_1time"><td class="mdescLeft">&#160;</td><td class="mdescRight">Namespace for time/date related classes and functions. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</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:afd15eb6e086c8242a2e202536fa4c02b"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#afd15eb6e086c8242a2e202536fa4c02b">hueplusplus::time::timepointToTimestamp</a> (std::chrono::system_clock::time_point time)</td></tr>
<tr class="memdesc:afd15eb6e086c8242a2e202536fa4c02b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a time_point to a timestamp string.  <a href="namespacehueplusplus_1_1time.html#afd15eb6e086c8242a2e202536fa4c02b">More...</a><br /></td></tr>
<tr class="separator:afd15eb6e086c8242a2e202536fa4c02b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84b6a46eb1f4a03ab7740104a8616007"><td class="memItemLeft" align="right" valign="top">std::chrono::system_clock::time_point&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#a84b6a46eb1f4a03ab7740104a8616007">hueplusplus::time::parseTimestamp</a> (const std::string &amp;timestamp)</td></tr>
<tr class="memdesc:a84b6a46eb1f4a03ab7740104a8616007"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts a timestamp to a time_point.  <a href="namespacehueplusplus_1_1time.html#a84b6a46eb1f4a03ab7740104a8616007">More...</a><br /></td></tr>
<tr class="separator:a84b6a46eb1f4a03ab7740104a8616007"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31275be9b8ff39ee8445787b59ad1235"><td class="memItemLeft" align="right" valign="top">std::chrono::system_clock::time_point&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#a31275be9b8ff39ee8445787b59ad1235">hueplusplus::time::parseUTCTimestamp</a> (const std::string &amp;timestamp)</td></tr>
<tr class="memdesc:a31275be9b8ff39ee8445787b59ad1235"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts an UTC timestamp to a time_point.  <a href="namespacehueplusplus_1_1time.html#a31275be9b8ff39ee8445787b59ad1235">More...</a><br /></td></tr>
<tr class="separator:a31275be9b8ff39ee8445787b59ad1235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeee784c375bcc301727eab3fe8e67d03"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#aeee784c375bcc301727eab3fe8e67d03">hueplusplus::time::durationTo_hh_mm_ss</a> (std::chrono::system_clock::duration duration)</td></tr>
<tr class="memdesc:aeee784c375bcc301727eab3fe8e67d03"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts duration to a time string.  <a href="namespacehueplusplus_1_1time.html#aeee784c375bcc301727eab3fe8e67d03">More...</a><br /></td></tr>
<tr class="separator:aeee784c375bcc301727eab3fe8e67d03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee172420a332a222f34f9e9eaf6c5621"><td class="memItemLeft" align="right" valign="top">std::chrono::system_clock::duration&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#aee172420a332a222f34f9e9eaf6c5621">hueplusplus::time::parseDuration</a> (const std::string &amp;hourMinSec)</td></tr>
<tr class="memdesc:aee172420a332a222f34f9e9eaf6c5621"><td class="mdescLeft">&#160;</td><td class="mdescRight">Converts time string to a duration.  <a href="namespacehueplusplus_1_1time.html#aee172420a332a222f34f9e9eaf6c5621">More...</a><br /></td></tr>
<tr class="separator:aee172420a332a222f34f9e9eaf6c5621"><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>Copyright Notice<br />
Copyright (C) 2020 Jan Rogall - developer<br />
 This file is part of hueplusplus.</p>
<p>hueplusplus is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p>
<p>hueplusplus is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.</p>
<p>You should have received a copy of the GNU Lesser General Public License along with hueplusplus. If not, see <a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>