<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Adafruit Real time clock question - Archived Suggestions				            </title>
            <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 17 Nov 2026 02:13:56 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25271</link>
                        <pubDate>Sat, 26 Feb 2022 00:11:26 +0000</pubDate>
                        <description><![CDATA[Lookup the API doc at
You will see a function called strftime(format ) I am showing just a part of the directives list but you can see the differences for 24hr and 12hr, the full list w...]]></description>
                        <content:encoded><![CDATA[<p>Lookup the API doc at <a href="https://docs.python.org/3/library/time.html#functions" target="_blank" rel="noopener">https://docs.python.org/3/library/time.html#functions</a></p>
<p>You will see a function called strftime(format ) I am showing just a part of the directives list but you can see the differences for 24hr and 12hr, the full list will show you how to arrange the date in any way you like.</p>
<p>A large part of a professional programmers job is learning an API. Some of these like windows is a very thick book. Last time I needed to do that the 8" x 6" book was about 3" thick. First learn the C builtin stuff like printf because what the pic does not show as it says in the 3 para 2nd sentence is a part is missing and that part can be an art form with backwards references, -ve offsets and other 'tricks'. Have fun.</p>
4074
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25271</guid>
                    </item>
				                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25269</link>
                        <pubDate>Fri, 25 Feb 2022 23:15:32 +0000</pubDate>
                        <description><![CDATA[@mrclassicman Sending you a dm]]></description>
                        <content:encoded><![CDATA[<p>@mrclassicman Sending you a dm</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25269</guid>
                    </item>
				                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25266</link>
                        <pubDate>Fri, 25 Feb 2022 22:21:19 +0000</pubDate>
                        <description><![CDATA[@zander First let paraphrase a song title &quot;Thick as a brick&quot; and that is me. I really do not understand on how this statement formats the time format, or allows it to be set to 12-hours.  I ...]]></description>
                        <content:encoded><![CDATA[<p>@zander First let paraphrase a song title "Thick as a brick" and that is me. I really do not understand on how this statement formats the time format, or allows it to be set to 12-hours.  I did look at the rtclib.h and found that the time const is protected and set at 1-23 hours. I am not a seasoned coder so at this point it looks as if I am at an impasse. Although I may be able to configure 24 to 12 after it is retrieved from the module and before I send that info to the display screen. I will continue to decipher, or  at least try to decipher, the code in case I am missing something. Feel free to comment on this or even direct, as all assistance is truly appreciated. I am smart enough to know that I do not know everything and therefore guess an awful lot! lol</p>
<p>protected:<br />uint8_t yOff; ///&lt; Year offset from 2000<br />uint8_t m; ///&lt; Month 1-12<br />uint8_t d; ///&lt; Day 1-31<br />uint8_t hh; ///&lt; Hours 0-23<br />uint8_t mm; ///&lt; Minutes 0-59<br />uint8_t ss; ///&lt; Seconds 0-59</p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>mrclassicman</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25266</guid>
                    </item>
				                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25256</link>
                        <pubDate>Fri, 25 Feb 2022 19:18:42 +0000</pubDate>
                        <description><![CDATA[@mrclassicman Read the 2nd half more carefully. Here is the unix standard time function that you include.]]></description>
                        <content:encoded><![CDATA[<p>@mrclassicman Read the 2nd half more carefully. Here is the unix standard time function that you include. </p>
<p><a href="https://docs.python.org/3/library/time.html" target="_blank" rel="noopener">https://docs.python.org/3/library/time.html</a></p>
4073]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25256</guid>
                    </item>
				                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25255</link>
                        <pubDate>Fri, 25 Feb 2022 18:57:52 +0000</pubDate>
                        <description><![CDATA[@zander Great suggestion! I completely forgot about going in that direction. Sometimes things are so simple we make them difficult! lol. I will look into this and report back.]]></description>
                        <content:encoded><![CDATA[<p>@zander Great suggestion! I completely forgot about going in that direction. Sometimes things are so simple we make them difficult! lol. I will look into this and report back.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>mrclassicman</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25255</guid>
                    </item>
				                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25254</link>
                        <pubDate>Fri, 25 Feb 2022 18:54:02 +0000</pubDate>
                        <description><![CDATA[Yes, Ron that code as I understand it is just to set the clock when I is first connected and then commented out so that it will not have to be reset every time it turned on.  I let it use my...]]></description>
                        <content:encoded><![CDATA[<p>Yes, Ron that code as I understand it is just to set the clock when I is first connected and then commented out so that it will not have to be reset every time it turned on.  I let it use my computers time and date during this set up. Problem is I cannot seem to change the 24-hour format to a 12-hour format. I will admit I have not spent a lot of time at this point. The message seems to be more of a road block than a simple syntax issue. </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>mrclassicman</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25254</guid>
                    </item>
				                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25252</link>
                        <pubDate>Fri, 25 Feb 2022 18:42:03 +0000</pubDate>
                        <description><![CDATA[I just googled &#039;RTC pcf8523 &#039; and very quickly found the following, as I suspected it&#039;s a struct.]]></description>
                        <content:encoded><![CDATA[<p>I just googled '<span>RTC pcf8523 ' and very quickly found the following, as I suspected it's a struct.</span></p>
4072
<p><span> </span></p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25252</guid>
                    </item>
				                    <item>
                        <title>RE: Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25251</link>
                        <pubDate>Fri, 25 Feb 2022 18:38:28 +0000</pubDate>
                        <description><![CDATA[I would be surprised if the 12/24 format isn&#039;t already available. Is the time returned in a structure? If it is, then one field will be 12hr one will be 24hr with lot&#039;s of other things like ...]]></description>
                        <content:encoded><![CDATA[<p>I would be surprised if the 12/24 format isn't already available. Is the time returned in a structure? If it is, then one field will be 12hr one will be 24hr with lot's of other things like UTC offset daylight savings etc. Check the .h file for clues.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25251</guid>
                    </item>
				                    <item>
                        <title>Adafruit Real time clock question</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25250</link>
                        <pubDate>Fri, 25 Feb 2022 18:31:24 +0000</pubDate>
                        <description><![CDATA[I just started playing with Adafruit RTC pcf8523 to eventually add a clock feature to future projects. I got everything working, very easy to use, by the way. I commented everything out that...]]></description>
                        <content:encoded><![CDATA[<p>I just started playing with Adafruit RTC pcf8523 to eventually add a clock feature to future projects. I got everything working, very easy to use, by the way. I commented everything out that I didn't want and re-arranged the date to be Month, Day, Year format. My question is, can this 24-hour clock format be changed? I tried adding and if then statement (IF &gt; =13 THEN -12) basically. I get an error code that states it can't be changed. it's not a biggie but I do like the 12-hour format better. Thanks in advance for any assistance on this!</p>
<p> </p>
<p>Terry</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>mrclassicman</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/adafruit-real-time-clock-question/#post-25250</guid>
                    </item>
							        </channel>
        </rss>
		