diff options
author | joeycastillo <joeycastillo@users.noreply.github.com> | 2023-02-10 21:19:03 +0000 |
---|---|---|
committer | joeycastillo <joeycastillo@users.noreply.github.com> | 2023-02-10 21:19:03 +0000 |
commit | fef58dd38fa5850885654580ebd11d5f4133b2c5 (patch) | |
tree | 164fba207e7d599dfba5f3c49b9078265af51065 | |
parent | ed394ab71f6f612b27ef8dd30c5559ebd6c1527e (diff) | |
download | Sensor-Watch-fef58dd38fa5850885654580ebd11d5f4133b2c5.tar.gz Sensor-Watch-fef58dd38fa5850885654580ebd11d5f4133b2c5.tar.bz2 Sensor-Watch-fef58dd38fa5850885654580ebd11d5f4133b2c5.zip |
deploy: eca75cfb2387464ecce93e8f2527839ba66c81bfgh-pages
-rw-r--r-- | watch__utility_8h_source.html | 99 |
1 files changed, 52 insertions, 47 deletions
diff --git a/watch__utility_8h_source.html b/watch__utility_8h_source.html index 88f01493..20363777 100644 --- a/watch__utility_8h_source.html +++ b/watch__utility_8h_source.html @@ -104,58 +104,63 @@ $(function() { <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#ifndef _WATCH_UTILITY_H_INCLUDED</span></div> <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#define _WATCH_UTILITY_H_INCLUDED</span></div> <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div> -<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include "<a class="code" href="watch_8h.html">watch.h</a>"</span></div> -<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div> +<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="comment">/*</span></div> +<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="comment"> * Define use_iso_8601_weeknumber as 1 to let weeknumbers start on Monday, 0 to start on Sunday.</span></div> +<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="comment"> */</span></div> +<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#define use_iso_8601_weeknumber 0</span></div> +<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div> +<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include "<a class="code" href="watch_8h.html">watch.h</a>"</span></div> <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div> -<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="structwatch__duration__t.html"> 36</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div> -<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> uint8_t seconds; <span class="comment">// 0-59</span></div> -<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> uint8_t minutes; <span class="comment">// 0-59</span></div> -<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> uint8_t hours; <span class="comment">// 0-23</span></div> -<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> uint32_t days; <span class="comment">// 0-4294967295</span></div> -<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span>} <a class="code hl_struct" href="structwatch__duration__t.html">watch_duration_t</a>;</div> -<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div> -<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code hl_function" href="group__utility.html#gaad14860c068aeed7a60e57874cad92b4">watch_utility_get_weekday</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> date_time);</div> -<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div> -<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span>uint8_t <a class="code hl_function" href="group__utility.html#ga284588c477ab00cdc71b7146359d39bf">watch_utility_get_iso8601_weekday_number</a>(uint16_t year, uint8_t month, uint8_t day);</div> -<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> </div> -<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div> -<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span>uint8_t <a class="code hl_function" href="group__utility.html#ga1f78ba1a1d4bd130e638869da417446e">watch_utility_get_weeknumber</a>(uint16_t year, uint8_t month, uint8_t day);</div> -<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div> -<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>uint16_t <a class="code hl_function" href="group__utility.html#ga2d997050973c483e0e099f42b0126312">watch_utility_days_since_new_year</a>(uint16_t year, uint8_t month, uint8_t day);</div> -<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div> -<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span>uint8_t <a class="code hl_function" href="group__utility.html#gafa27a35234148d4f9d0216e21ddaabec">is_leap</a>(uint16_t year);</div> +<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> </div> +<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="structwatch__duration__t.html"> 41</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span>{</div> +<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> uint8_t seconds; <span class="comment">// 0-59</span></div> +<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> uint8_t minutes; <span class="comment">// 0-59</span></div> +<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> uint8_t hours; <span class="comment">// 0-23</span></div> +<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> uint32_t days; <span class="comment">// 0-4294967295</span></div> +<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span>} <a class="code hl_struct" href="structwatch__duration__t.html">watch_duration_t</a>;</div> +<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> </div> +<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code hl_function" href="group__utility.html#gaad14860c068aeed7a60e57874cad92b4">watch_utility_get_weekday</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> date_time);</div> +<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div> +<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span>uint8_t <a class="code hl_function" href="group__utility.html#ga284588c477ab00cdc71b7146359d39bf">watch_utility_get_iso8601_weekday_number</a>(uint16_t year, uint8_t month, uint8_t day);</div> +<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div> +<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> </div> +<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span>uint8_t <a class="code hl_function" href="group__utility.html#ga1f78ba1a1d4bd130e638869da417446e">watch_utility_get_weeknumber</a>(uint16_t year, uint8_t month, uint8_t day);</div> +<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div> +<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span>uint16_t <a class="code hl_function" href="group__utility.html#ga2d997050973c483e0e099f42b0126312">watch_utility_days_since_new_year</a>(uint16_t year, uint8_t month, uint8_t day);</div> <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div> -<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span>uint32_t <a class="code hl_function" href="group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda">watch_utility_convert_to_unix_time</a>(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset);</div> -<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> </div> -<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span>uint32_t <a class="code hl_function" href="group__utility.html#gaffafef58755ff2704cf93fe1a0849a27">watch_utility_date_time_to_unix_time</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> date_time, uint32_t utc_offset);</div> -<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div> -<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span><a class="code hl_struct" href="structwatch__duration__t.html">watch_duration_t</a> <a class="code hl_function" href="group__utility.html#ga5d6af930688b240d0f075806b5730d21">watch_utility_seconds_to_duration</a>(uint32_t seconds);</div> -<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div> -<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span><a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> <a class="code hl_function" href="group__utility.html#ga396e56109234aaa00993c3dd84f3f43c">watch_utility_date_time_from_unix_time</a>(uint32_t timestamp, uint32_t utc_offset);</div> -<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div> -<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span><span class="keywordtype">bool</span> <a class="code hl_function" href="group__utility.html#ga470a4c7199afac6319c259fc459881f4">watch_utility_convert_to_12_hour</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> *date_time);</div> -<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div> -<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span><a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> <a class="code hl_function" href="group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327">watch_utility_date_time_convert_zone</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset);</div> -<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div> -<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span><span class="keywordtype">float</span> <a class="code hl_function" href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">watch_utility_thermistor_temperature</a>(uint16_t value, <span class="keywordtype">bool</span> highside, <span class="keywordtype">float</span> b_coefficient, <span class="keywordtype">float</span> nominal_temperature, <span class="keywordtype">float</span> nominal_resistance, <span class="keywordtype">float</span> series_resistance);</div> -<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div> -<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span>uint32_t <a class="code hl_function" href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">watch_utility_offset_timestamp</a>(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds);</div> -<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> </div> -<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span><span class="preprocessor">#endif</span></div> -<div class="ttc" id="agroup__utility_html_ga176fd2c04778c2049f6ae8b9d374725c"><div class="ttname"><a href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">watch_utility_offset_timestamp</a></div><div class="ttdeci">uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds)</div><div class="ttdoc">Offset a timestamp by a given amount.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:239</div></div> +<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span>uint8_t <a class="code hl_function" href="group__utility.html#gafa27a35234148d4f9d0216e21ddaabec">is_leap</a>(uint16_t year);</div> +<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div> +<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span>uint32_t <a class="code hl_function" href="group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda">watch_utility_convert_to_unix_time</a>(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset);</div> +<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div> +<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span>uint32_t <a class="code hl_function" href="group__utility.html#gaffafef58755ff2704cf93fe1a0849a27">watch_utility_date_time_to_unix_time</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> date_time, uint32_t utc_offset);</div> +<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> </div> +<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span><a class="code hl_struct" href="structwatch__duration__t.html">watch_duration_t</a> <a class="code hl_function" href="group__utility.html#ga5d6af930688b240d0f075806b5730d21">watch_utility_seconds_to_duration</a>(uint32_t seconds);</div> +<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div> +<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span><a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> <a class="code hl_function" href="group__utility.html#ga396e56109234aaa00993c3dd84f3f43c">watch_utility_date_time_from_unix_time</a>(uint32_t timestamp, uint32_t utc_offset);</div> +<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div> +<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span><span class="keywordtype">bool</span> <a class="code hl_function" href="group__utility.html#ga470a4c7199afac6319c259fc459881f4">watch_utility_convert_to_12_hour</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> *date_time);</div> +<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> </div> +<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span><a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> <a class="code hl_function" href="group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327">watch_utility_date_time_convert_zone</a>(<a class="code hl_union" href="unionwatch__date__time.html">watch_date_time</a> date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset);</div> +<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> </div> +<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span><span class="keywordtype">float</span> <a class="code hl_function" href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">watch_utility_thermistor_temperature</a>(uint16_t value, <span class="keywordtype">bool</span> highside, <span class="keywordtype">float</span> b_coefficient, <span class="keywordtype">float</span> nominal_temperature, <span class="keywordtype">float</span> nominal_resistance, <span class="keywordtype">float</span> series_resistance);</div> +<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div> +<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span>uint32_t <a class="code hl_function" href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">watch_utility_offset_timestamp</a>(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds);</div> +<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> </div> +<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span><span class="preprocessor">#endif</span></div> +<div class="ttc" id="agroup__utility_html_ga176fd2c04778c2049f6ae8b9d374725c"><div class="ttname"><a href="group__utility.html#ga176fd2c04778c2049f6ae8b9d374725c">watch_utility_offset_timestamp</a></div><div class="ttdeci">uint32_t watch_utility_offset_timestamp(uint32_t now, int8_t hours, int8_t minutes, int8_t seconds)</div><div class="ttdoc">Offset a timestamp by a given amount.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:243</div></div> <div class="ttc" id="agroup__utility_html_ga1f78ba1a1d4bd130e638869da417446e"><div class="ttname"><a href="group__utility.html#ga1f78ba1a1d4bd130e638869da417446e">watch_utility_get_weeknumber</a></div><div class="ttdeci">uint8_t watch_utility_get_weeknumber(uint16_t year, uint8_t month, uint8_t day)</div><div class="ttdoc">Returns a number between 1-53 representing the weeknumber according to ISO8601 : First week of the ye...</div><div class="ttdef"><b>Definition:</b> watch_utility.c:45</div></div> -<div class="ttc" id="agroup__utility_html_ga2753ff031c28202d23b0f3e80de2c920"><div class="ttname"><a href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">watch_utility_thermistor_temperature</a></div><div class="ttdeci">float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)</div><div class="ttdoc">Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:219</div></div> +<div class="ttc" id="agroup__utility_html_ga2753ff031c28202d23b0f3e80de2c920"><div class="ttname"><a href="group__utility.html#ga2753ff031c28202d23b0f3e80de2c920">watch_utility_thermistor_temperature</a></div><div class="ttdeci">float watch_utility_thermistor_temperature(uint16_t value, bool highside, float b_coefficient, float nominal_temperature, float nominal_resistance, float series_resistance)</div><div class="ttdoc">Returns a temperature in degrees Celsius for a given thermistor voltage divider circuit.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:223</div></div> <div class="ttc" id="agroup__utility_html_ga284588c477ab00cdc71b7146359d39bf"><div class="ttname"><a href="group__utility.html#ga284588c477ab00cdc71b7146359d39bf">watch_utility_get_iso8601_weekday_number</a></div><div class="ttdeci">uint8_t watch_utility_get_iso8601_weekday_number(uint16_t year, uint8_t month, uint8_t day)</div><div class="ttdoc">Returns a number between 1-7 representing the weekday according to ISO8601 : week starts on Monday an...</div><div class="ttdef"><b>Definition:</b> watch_utility.c:34</div></div> -<div class="ttc" id="agroup__utility_html_ga2d997050973c483e0e099f42b0126312"><div class="ttname"><a href="group__utility.html#ga2d997050973c483e0e099f42b0126312">watch_utility_days_since_new_year</a></div><div class="ttdeci">uint16_t watch_utility_days_since_new_year(uint16_t year, uint8_t month, uint8_t day)</div><div class="ttdoc">Returns a number between 1-366 representing the elapsed days since January 1st the same year.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:82</div></div> -<div class="ttc" id="agroup__utility_html_ga396e56109234aaa00993c3dd84f3f43c"><div class="ttname"><a href="group__utility.html#ga396e56109234aaa00993c3dd84f3f43c">watch_utility_date_time_from_unix_time</a></div><div class="ttdeci">watch_date_time watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset)</div><div class="ttdoc">Returns a watch_date_time struct for a given UNIX time and UTC offset.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:126</div></div> -<div class="ttc" id="agroup__utility_html_ga470a4c7199afac6319c259fc459881f4"><div class="ttname"><a href="group__utility.html#ga470a4c7199afac6319c259fc459881f4">watch_utility_convert_to_12_hour</a></div><div class="ttdeci">bool watch_utility_convert_to_12_hour(watch_date_time *date_time)</div><div class="ttdoc">Converts a watch_date_time for 12-hour display.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:212</div></div> -<div class="ttc" id="agroup__utility_html_ga5d6af930688b240d0f075806b5730d21"><div class="ttname"><a href="group__utility.html#ga5d6af930688b240d0f075806b5730d21">watch_utility_seconds_to_duration</a></div><div class="ttdeci">watch_duration_t watch_utility_seconds_to_duration(uint32_t seconds)</div><div class="ttdoc">Converts a duration in seconds to a watch_duration_t struct.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:201</div></div> -<div class="ttc" id="agroup__utility_html_ga94f038ec0e1b8f3c48c4364b56566327"><div class="ttname"><a href="group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327">watch_utility_date_time_convert_zone</a></div><div class="ttdeci">watch_date_time watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset)</div><div class="ttdoc">Converts a time from a given time zone to another time zone.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:196</div></div> -<div class="ttc" id="agroup__utility_html_ga94f5cc404949bf4c0ac4bc4770ec8eda"><div class="ttname"><a href="group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda">watch_utility_convert_to_unix_time</a></div><div class="ttdeci">uint32_t watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset)</div><div class="ttdoc">Returns the UNIX time (seconds since 1970) for a given date/time in UTC.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:101</div></div> +<div class="ttc" id="agroup__utility_html_ga2d997050973c483e0e099f42b0126312"><div class="ttname"><a href="group__utility.html#ga2d997050973c483e0e099f42b0126312">watch_utility_days_since_new_year</a></div><div class="ttdeci">uint16_t watch_utility_days_since_new_year(uint16_t year, uint8_t month, uint8_t day)</div><div class="ttdoc">Returns a number between 1-366 representing the elapsed days since January 1st the same year.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:86</div></div> +<div class="ttc" id="agroup__utility_html_ga396e56109234aaa00993c3dd84f3f43c"><div class="ttname"><a href="group__utility.html#ga396e56109234aaa00993c3dd84f3f43c">watch_utility_date_time_from_unix_time</a></div><div class="ttdeci">watch_date_time watch_utility_date_time_from_unix_time(uint32_t timestamp, uint32_t utc_offset)</div><div class="ttdoc">Returns a watch_date_time struct for a given UNIX time and UTC offset.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:130</div></div> +<div class="ttc" id="agroup__utility_html_ga470a4c7199afac6319c259fc459881f4"><div class="ttname"><a href="group__utility.html#ga470a4c7199afac6319c259fc459881f4">watch_utility_convert_to_12_hour</a></div><div class="ttdeci">bool watch_utility_convert_to_12_hour(watch_date_time *date_time)</div><div class="ttdoc">Converts a watch_date_time for 12-hour display.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:216</div></div> +<div class="ttc" id="agroup__utility_html_ga5d6af930688b240d0f075806b5730d21"><div class="ttname"><a href="group__utility.html#ga5d6af930688b240d0f075806b5730d21">watch_utility_seconds_to_duration</a></div><div class="ttdeci">watch_duration_t watch_utility_seconds_to_duration(uint32_t seconds)</div><div class="ttdoc">Converts a duration in seconds to a watch_duration_t struct.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:205</div></div> +<div class="ttc" id="agroup__utility_html_ga94f038ec0e1b8f3c48c4364b56566327"><div class="ttname"><a href="group__utility.html#ga94f038ec0e1b8f3c48c4364b56566327">watch_utility_date_time_convert_zone</a></div><div class="ttdeci">watch_date_time watch_utility_date_time_convert_zone(watch_date_time date_time, uint32_t origin_utc_offset, uint32_t destination_utc_offset)</div><div class="ttdoc">Converts a time from a given time zone to another time zone.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:200</div></div> +<div class="ttc" id="agroup__utility_html_ga94f5cc404949bf4c0ac4bc4770ec8eda"><div class="ttname"><a href="group__utility.html#ga94f5cc404949bf4c0ac4bc4770ec8eda">watch_utility_convert_to_unix_time</a></div><div class="ttdeci">uint32_t watch_utility_convert_to_unix_time(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second, uint32_t utc_offset)</div><div class="ttdoc">Returns the UNIX time (seconds since 1970) for a given date/time in UTC.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:105</div></div> <div class="ttc" id="agroup__utility_html_gaad14860c068aeed7a60e57874cad92b4"><div class="ttname"><a href="group__utility.html#gaad14860c068aeed7a60e57874cad92b4">watch_utility_get_weekday</a></div><div class="ttdeci">const char * watch_utility_get_weekday(watch_date_time date_time)</div><div class="ttdoc">Returns a two-letter weekday for the given timestamp, suitable for display in positions 0-1 of the wa...</div><div class="ttdef"><b>Definition:</b> watch_utility.c:28</div></div> -<div class="ttc" id="agroup__utility_html_gafa27a35234148d4f9d0216e21ddaabec"><div class="ttname"><a href="group__utility.html#gafa27a35234148d4f9d0216e21ddaabec">is_leap</a></div><div class="ttdeci">uint8_t is_leap(uint16_t year)</div><div class="ttdoc">Returns 1 if year is leap and 0 otherwise.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:76</div></div> -<div class="ttc" id="agroup__utility_html_gaffafef58755ff2704cf93fe1a0849a27"><div class="ttname"><a href="group__utility.html#gaffafef58755ff2704cf93fe1a0849a27">watch_utility_date_time_to_unix_time</a></div><div class="ttdeci">uint32_t watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset)</div><div class="ttdoc">Returns the UNIX time (seconds since 1970) for a given watch_date_time struct.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:116</div></div> -<div class="ttc" id="astructwatch__duration__t_html"><div class="ttname"><a href="structwatch__duration__t.html">watch_duration_t</a></div><div class="ttdef"><b>Definition:</b> watch_utility.h:36</div></div> +<div class="ttc" id="agroup__utility_html_gafa27a35234148d4f9d0216e21ddaabec"><div class="ttname"><a href="group__utility.html#gafa27a35234148d4f9d0216e21ddaabec">is_leap</a></div><div class="ttdeci">uint8_t is_leap(uint16_t year)</div><div class="ttdoc">Returns 1 if year is leap and 0 otherwise.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:80</div></div> +<div class="ttc" id="agroup__utility_html_gaffafef58755ff2704cf93fe1a0849a27"><div class="ttname"><a href="group__utility.html#gaffafef58755ff2704cf93fe1a0849a27">watch_utility_date_time_to_unix_time</a></div><div class="ttdeci">uint32_t watch_utility_date_time_to_unix_time(watch_date_time date_time, uint32_t utc_offset)</div><div class="ttdoc">Returns the UNIX time (seconds since 1970) for a given watch_date_time struct.</div><div class="ttdef"><b>Definition:</b> watch_utility.c:120</div></div> +<div class="ttc" id="astructwatch__duration__t_html"><div class="ttname"><a href="structwatch__duration__t.html">watch_duration_t</a></div><div class="ttdef"><b>Definition:</b> watch_utility.h:41</div></div> <div class="ttc" id="aunionwatch__date__time_html"><div class="ttname"><a href="unionwatch__date__time.html">watch_date_time</a></div><div class="ttdef"><b>Definition:</b> watch_rtc.h:44</div></div> <div class="ttc" id="awatch_8h_html"><div class="ttname"><a href="watch_8h.html">watch.h</a></div></div> </div><!-- fragment --></div><!-- contents --> |