<?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>Log timestamp from real time clock</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122067/log-timestamp-from-real-time-clock</link><description>Hi, 
 I have a board with a real time clock IC which is kept alive during power downs. I want the Nordic nrf52840 to read the time from the real time clock and then use this in the logs zephyr produces. I have the driver in place for the RTC but I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Jun 2025 11:50:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122067/log-timestamp-from-real-time-clock" /><item><title>RE: Log timestamp from real time clock</title><link>https://devzone.nordicsemi.com/thread/538407?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 11:50:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d82e17a2-e15d-4458-ba21-5f4dfbbf574b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is possible to use the clock_settime() function for this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/119523/setting-and-updating-absolute-time-in-zephyr-application-using-time_t-epoch"&gt;Setting and Updating Absolute Time in Zephyr Application Using time_t Epoch&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>