<?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>Local date/time on nrf9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110379/local-date-time-on-nrf9160</link><description>Hi, I am working with the nrf9160 and need to get the current date / time. It looks like overall this is pretty simple to do, but I had a question about local time. Using how is the current time zone set? Does it take into account daylight savings time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Apr 2024 07:01:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110379/local-date-time-on-nrf9160" /><item><title>RE: Local date/time on nrf9160</title><link>https://devzone.nordicsemi.com/thread/479600?ContentTypeID=1</link><pubDate>Fri, 19 Apr 2024 07:01:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d87d22b-fff5-4189-8ce4-d2f361215047</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;The&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/others/date_time.html#api_documentation:~:text=int%20date_time_now_local(int64_t%20*local_time_ms)%EF%83%81"&gt; function &lt;/a&gt;mentioned does not account for the daylight savings change. You can read more about this in the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/libraries/bluetooth_services/mesh/time_srv.html#leap_seconds_and_time_zones:~:text=clock%20control%20accuracy.-,Leap%20seconds%20and%20time%20zones,-As%20described%20in"&gt;leap seconds and time zones documentation.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can use&amp;nbsp;the &lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands/page/REF/at_commands/mob_termination_ctrl_status/cclk_nordic_read.html"&gt;AT Command Proprietary clock %CCLK&lt;/a&gt;&amp;nbsp;in order to read the current time and daylight saving time. But do note that&amp;nbsp;not all networks provide the required information t do the change, nor can the highest accuracy requirements be guaranteed, either.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>