<?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>AT+CCLK returns incorrect time after cellular reconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55344/at-cclk-returns-incorrect-time-after-cellular-reconnect</link><description>Hi, 
 I noticed something strange while developing with the nRF9160 modem&amp;#39;s RTC. Here&amp;#39;s the sequence of events 
 
 Connect cellular 
 Get time from NTP server and initialize modem RTC with it. AT+CCLK= &amp;quot;19/12/06,20:20:10+00&amp;quot; 
 Disconnect cellular 
 Read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 Dec 2019 12:40:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55344/at-cclk-returns-incorrect-time-after-cellular-reconnect" /><item><title>RE: AT+CCLK returns incorrect time after cellular reconnect</title><link>https://devzone.nordicsemi.com/thread/224427?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 12:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feabcc51-3305-4d1b-963a-7e58937b2472</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Jeff&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcclk_read.html"&gt;AT+CCLK command&lt;/a&gt;&amp;nbsp;returns the GMT time and the difference to your local time in quarters of an hour. So, 20:20:19-20 means that your local time is 20:20 minus 20 quarters (5 hours), so 15:20 (3:20 PM). I agree that this is not an expected way of getting the time, but the documentation states that it is done this way, so it is not a bug.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can check out the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/modem_info.html?highlight=modem_info_date_time"&gt;modem_info library&lt;/a&gt; in order to get the mobile network time and date, as well as a multitude of other information from the modem.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>