<?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>Device clock set and get</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45907/device-clock-set-and-get</link><description>Hi, 
 I have tried to find out how to aks the current time and set it, without success. 
 time(NULL) returns invalid data. What methods I should use to get the current time and set new time?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Apr 2019 12:48:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45907/device-clock-set-and-get" /><item><title>RE: Device clock set and get</title><link>https://devzone.nordicsemi.com/thread/181329?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 12:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b69c8dfc-80b4-4aab-8fc4-233f4825ff4d</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;This is a feature that will be introduced in the next version of the modem firmware:&lt;br /&gt;Please take a look -- &amp;gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/45814/lte-network-time-from-nrf9160"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/45814/lte-network-time-from-nrf9160&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device clock set and get</title><link>https://devzone.nordicsemi.com/thread/181109?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 14:12:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e22e0982-9b2c-4e66-9c83-9814025a1be5</guid><dc:creator>Gurux</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I want to set date and time. In my mind, I read somewhere that there is an internal clock. I did try to call time(NULL), but it returned invalid time. I believe that this is not implemented and I need to use another method.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.cppreference.com/w/c/chrono/time"&gt;https://en.cppreference.com/w/c/chrono/time&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device clock set and get</title><link>https://devzone.nordicsemi.com/thread/181090?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 13:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ee69528-86ca-4844-8662-94da4027543d</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Gurux,&lt;/p&gt;
&lt;p&gt;What &amp;quot;&lt;em&gt;time&lt;/em&gt;&amp;quot; are you referring to?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need more information to be able to give you a sensible answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>