<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64931/using-rtc-to-control-the-real-timestamp</link><description>Hi Dev Team, 
 I had a task to work on that required a timsetamp to schedule a certain event, like for example I wanted my modem to start off every morning at 10:00:00 and switch off at 10:05:00. 
 What could be the best way to achieve this kind of functionality</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 01 Sep 2020 09:26:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64931/using-rtc-to-control-the-real-timestamp" /><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/267410?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2020 09:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c989af18-1fae-4324-853b-312218df0b8a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Awesome Adeel, I will close the case then &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/267275?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 13:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb64d94-af56-480b-ac19-dfac73a8cd2f</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Tobjorn,&lt;/p&gt;
&lt;p&gt;Thanks for the help on this &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;. Solved my issue of getting the time through NTP:&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/267141?ContentTypeID=1</link><pubDate>Mon, 31 Aug 2020 07:56:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08adb2e1-4046-47ed-8ad0-7f0d30cba9ce</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&lt;/p&gt;
&lt;p&gt;You could do something like this, using the time.h library similar to how it&amp;#39;s done in the calendar example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Convert to string using time.h
time_t time = unix_time_ms / 1000;
struct tm local_time;
local_time = *localtime(&amp;amp;time);
char time_string[80];
strftime(time_string, 80, &amp;quot;%x - %H:%M:%S&amp;quot;, &amp;amp;local_time);
printk(&amp;quot;Local time from time.h: %s\n&amp;quot;, time_string);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The main difference is that you need to divide the timestamp by 1000, since the time.h library expects a second based time value.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In order to use time.h you also need to enable one of the standard C libraries, which can be done by adding the following line to prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_NEWLIB_LIBC=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/267038?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 15:42:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5275d8c1-22b4-4943-87bb-3c9f3239c3ee</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Tobjorn,&lt;/p&gt;
&lt;p&gt;Thanks, I was able to run the example file you sent and it works. Thanks for the effort.&lt;/p&gt;
&lt;p&gt;I just wanted to know one last thing. How would you suggest to go about and convert the time I am getting into a date_time format as we use normally. Any such available library or struct I could use.&lt;/p&gt;
&lt;p&gt;Really appreciate the help on this &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/267029?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 14:29:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ee65128-2ac0-4dcb-a001-eea87e920190</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&lt;/p&gt;
&lt;p&gt;I messed around with it today, and finally got it to work with some help from the developer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can find my example here:&lt;br /&gt;&lt;a href="https://github.com/too1/mqtt_w_date_time"&gt;https://github.com/too1/mqtt_w_date_time&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It is based on the mqtt_simple example, but I moved all the mqtt functions into a separate file for clarity, and added the date_time calls into main.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Some things worth noting:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) To make date_time.c build I had to make a small change to the code. I explain this in the readme of the repository.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;According to the developer this issue is fixed in the master branch, but was not properly tested in the v1.3.0 tag.&lt;/p&gt;
&lt;p&gt;2) In order to get the time information properly he suggested I set&amp;nbsp;&lt;span&gt;CONFIG_DATE_TIME_MODEM&lt;/span&gt;&lt;span&gt;=n in the project configuration (prj.conf). This prevents the library from trying to get the time from the modem, and instead accesses the NTP server.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) He also suggested adding some delay between the first call to date_time_update() and date_time_now(), as you can see in my example.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;With these things in place I am able to see the current time printed after the program has run for a bit:&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-59b12470fdba4868863b35032a057e71/pastedimage1598624989254v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards&lt;br /&gt;Torbjørn&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/266796?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 15:04:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42accf77-81c3-4843-aec0-cfde497cadf6</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Tobjorn,&lt;/p&gt;
&lt;p&gt;I appreciate your support. You can get back to me tomorrow, no issues :).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/266791?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 14:59:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a72a67-99fc-42b5-a605-d6eb06cac04a</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the slow response. To be honest I haven&amp;#39;t handled much nRF91 support up until now, and have spent some time just to get the tools and basic examples running.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will do my best to integrate your changes and get back to you by tomorrow.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/266136?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 08:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d482a195-1933-4574-8c37-f0372ac45fe6</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;I am attaching my main file for you to have a look. I have added the date_time_update() ; time_modem_get() and date_time_now() functions in the main loop part of the code. I am just trying to build up on the asset tracker application using the date_time library.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can try it out and let me know if it works or you can modify it as well :).&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/43000.main.c"&gt;devzone.nordicsemi.com/.../43000.main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/266114?ContentTypeID=1</link><pubDate>Tue, 25 Aug 2020 07:48:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa5fb96-f4e9-4662-b112-50f9f5132d96</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&lt;/p&gt;
&lt;p&gt;One of my colleagues made an example for NTP that he made available online, but I am not sure the date_time library is used, so I don&amp;#39;t know how relevant it is for you:&lt;br /&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/ntp"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/ntp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Are you able to share your code with me?&lt;br /&gt;Then I will give it a go and see if I can get it to work on my end.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/266028?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 14:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a4259f4-f72d-481c-b397-0ffb64760b23</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;This is the output coming up on the screen. I even tried different NTP servers to try and get the error out.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3554.Unbenannt.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265949?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 11:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69f72d1c-2e95-4ab0-bb0c-12261a834334</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Tobjorn,&lt;/p&gt;
&lt;p&gt;Unfortunately yes, its still reporting the same error. The CEREG value says the modem is connected but the error still remains. Is there any way or other example where this could have been implemented for a reference ?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265939?ContentTypeID=1</link><pubDate>Mon, 24 Aug 2020 11:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f92137e8-0433-400b-9f7b-4c244f8b6778</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&lt;/p&gt;
&lt;p&gt;After turning the modem back on it will take some time for it to reconnect to the network.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you wait for the CEREG&amp;nbsp;notification informing you that the modem is connected is the date_time library still reporting errors?&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265677?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 07:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc771b6f-9239-45c4-8111-4ef5ffa1eec2</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Tobjorn,&lt;/p&gt;
&lt;p&gt;Yes, I was trying to turn off my modem for a certain time and then turn it back on later. Even when it is turned back on (AT+CFUN = 1), I still get the same error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2020-08-20T11:13:36.441Z DEBUG modem &amp;lt;&amp;lt; AT send: AT+CFUN=1&lt;br /&gt;2020-08-20T11:13:36.546Z DEBUG modem &amp;lt;&amp;lt; AT ret: OK&lt;br /&gt;2020-08-20T11:13:37.283Z DEBUG modem &amp;lt;&amp;lt; [00:01:05.495,147] [1;31m&amp;lt;err&amp;gt; date_time: sntp_query, error: -1[0m&lt;br /&gt;2020-08-20T11:13:37.294Z DEBUG modem &amp;lt;&amp;lt; [00:01:05.503,540] [1;31m&amp;lt;err&amp;gt; date_time: getaddrinfo, error: -11[0m&lt;br /&gt;2020-08-20T11:13:37.302Z DEBUG modem &amp;lt;&amp;lt; [00:01:05.513,458] [1;31m&amp;lt;err&amp;gt; date_time: getaddrinfo, error: -11[0m&lt;br /&gt;2020-08-20T11:13:37.312Z DEBUG modem &amp;lt;&amp;lt; [00:01:05.522,064] [1;31m&amp;lt;err&amp;gt; date_time: getaddrinfo, error: -11[0m&lt;br /&gt;2020-08-20T11:13:37.319Z DEBUG modem &amp;lt;&amp;lt; [00:01:05.530,700] [1;31m&amp;lt;err&amp;gt; date_time: getaddrinfo, error: -11[0m&lt;br /&gt;2020-08-20T11:13:37.329Z DEBUG modem &amp;lt;&amp;lt; [00:01:05.538,482] [1;31m&amp;lt;err&amp;gt; date_time: Not getting time from any NTP server[0m&lt;/p&gt;
&lt;p&gt;Is there any procedure or a way to use the date_time library. Is there any specific example to use that library ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265671?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 07:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08e8c808-06e0-4823-b30b-84a411489642</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&lt;/p&gt;
&lt;p&gt;Looking at the log it appears you are disabling the modem before this issue occurs:&lt;/p&gt;
&lt;p&gt;2020-08-20T11:13:04.559Z DEBUG modem &amp;lt;&amp;lt; AT send: AT+CFUN=0&lt;/p&gt;
&lt;p&gt;Can you confirm whether or not this was intentional?&lt;/p&gt;
&lt;p&gt;After disabling the modem you can see that you get detached, and at this point the data connection is lost.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265530?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 11:32:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a3f561a-1e33-4a3c-994e-66953974da3f</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;I am trying to use the date_time.h library that incorporates SNTP in it. When i try to run it, I get the following errors that I am unable to solve.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2020_2D00_08_2D00_20T11_5F00_12_5F00_42.702Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../2020_2D00_08_2D00_20T11_5F00_12_5F00_42.702Z_2D00_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0272.Picture.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you let me know the methods to solve this error that I am getting. This is using the date_time.h library.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265526?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 11:22:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37a322ba-a99a-440e-9979-2aab9e19aabc</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&lt;/p&gt;
&lt;p&gt;My bad, I thought you were using an nRF52 series device.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t have a lot of experience with the nRF9160, but&amp;nbsp;I got a tip from a colleague that the SNTP library might provide what you need:&lt;/p&gt;
&lt;div&gt;&lt;a title="https://docs.zephyrproject.org/latest/reference/networking/sntp.html" href="https://docs.zephyrproject.org/latest/reference/networking/sntp.html" rel="noopener noreferrer" target="_blank"&gt;https://docs.zephyrproject.org/latest/reference/networking/sntp.html&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards&lt;br /&gt;Torbjørn&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265315?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 12:29:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:545aa8a7-a1d1-4d63-8a8f-8b3214a9364c</guid><dc:creator>Adeel</dc:creator><description>&lt;p&gt;Hi Torbjorn,&lt;/p&gt;
&lt;p&gt;Is&amp;nbsp; there any possibility of an example for nRF9160DK. I am using NCS v1.3.0 nRF Connect for desktop and running the asset tracker application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tried using the date_time.h library to try and get the time either using NTP or through MODEM. I can use the AT+CCLK command to fix the time manually and then read it but I would like the network to get the current time for me.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Adeel.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using RTC to control the real timestamp</title><link>https://devzone.nordicsemi.com/thread/265312?ContentTypeID=1</link><pubDate>Wed, 19 Aug 2020 12:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a168a300-be5a-45fb-9109-819842e77590</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Adeel&lt;/p&gt;
&lt;p&gt;You might want to have a look at the calendar example on our Github account:&lt;br /&gt;&lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;https://github.com/NordicPlayground/nrf5-calendar-example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It basically uses the standard time.h library in C to decode rolling second counter into seconds, minutes, hours, days etc, and uses the RTC timer in the nRF52 to update the time every second.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please be aware that if you need to keep track of time over long periods you should use an external 32k crystal for the best accuracy.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>