_time_pattern_8cpp.html
9.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!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
 <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> |
<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 <cstdlib></code><br />
<code>#include <ctime></code><br />
<code>#include <<a class="el" href="_hue_exception_macro_8h_source.html">hueplusplus/HueExceptionMacro.h</a>></code><br />
<code>#include <<a class="el" href="_time_pattern_8h_source.html">hueplusplus/TimePattern.h</a>></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">  </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus.html">hueplusplus</a></td></tr>
<tr class="memdesc:namespacehueplusplus"><td class="mdescLeft"> </td><td class="mdescRight">Namespace for the hueplusplus library. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:namespacehueplusplus_1_1time"><td class="memItemLeft" align="right" valign="top">  </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"> </td><td class="mdescRight">Namespace for time/date related classes and functions. <br /></td></tr>
<tr class="separator:"><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:afd15eb6e086c8242a2e202536fa4c02b"><td class="memItemLeft" align="right" valign="top">std::string </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"> </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"> </td></tr>
<tr class="memitem:a84b6a46eb1f4a03ab7740104a8616007"><td class="memItemLeft" align="right" valign="top">std::chrono::system_clock::time_point </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#a84b6a46eb1f4a03ab7740104a8616007">hueplusplus::time::parseTimestamp</a> (const std::string &timestamp)</td></tr>
<tr class="memdesc:a84b6a46eb1f4a03ab7740104a8616007"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:a31275be9b8ff39ee8445787b59ad1235"><td class="memItemLeft" align="right" valign="top">std::chrono::system_clock::time_point </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#a31275be9b8ff39ee8445787b59ad1235">hueplusplus::time::parseUTCTimestamp</a> (const std::string &timestamp)</td></tr>
<tr class="memdesc:a31275be9b8ff39ee8445787b59ad1235"><td class="mdescLeft"> </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"> </td></tr>
<tr class="memitem:aeee784c375bcc301727eab3fe8e67d03"><td class="memItemLeft" align="right" valign="top">std::string </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"> </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"> </td></tr>
<tr class="memitem:aee172420a332a222f34f9e9eaf6c5621"><td class="memItemLeft" align="right" valign="top">std::chrono::system_clock::duration </td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehueplusplus_1_1time.html#aee172420a332a222f34f9e9eaf6c5621">hueplusplus::time::parseDuration</a> (const std::string &hourMinSec)</td></tr>
<tr class="memdesc:aee172420a332a222f34f9e9eaf6c5621"><td class="mdescLeft"> </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"> </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  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>