<div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">DobrĂ© odpoledne,</div><div dir="ltr"><div><br></div><div>je nÄ›jakĂ˝ trik na vĂ˝poÄŤet jestli je sudĂ˝ nebo lichĂ˝ tĂ˝den v roce v C/C++/Arduino framework? Respektive ÄŤĂ­slo tĂ˝dne v roce? Mám k dispozici datum z NTP klienta, ale tam nevidĂ­m ÄŤĂ­slo tĂ˝dne?</div><div><br></div><div>Z ÄŤĂ­sla tĂ˝dne by to mÄ›lo jĂ­t uĹľ zjistit jednoduše takto:</div><div><br></div><div>bool odd_week = week&1;<br></div><div><br></div><div>Našel jsem nÄ›co jako toto, ale nenĂ­ na to nÄ›jakĂ˝ jednoduchĂ˝ trik, přímo z NTP nebo RTC ESP32?</div><div><br></div><div><a href="https://forum.arduino.cc/t/how-to-calculate-number-of-week-and-number-of-day/44587" target="_blank" rel="noreferrer">https://forum.arduino.cc/t/how-to-calculate-number-of-week-and-number-of-day/44587</a><br></div><div><br></div><div>DĂ­ky,</div><div><br></div><div>Honza PĹŻhonĂ˝<br></div></div>
</div></div>