<?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>NRF52832 RTC using to get time stamp</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104533/nrf52832-rtc-using-to-get-time-stamp</link><description>Hello,I have a custom board using a Nordic nrf52823 microcontroller on it. I am using VSCode with the nrf connect SDK and the Zpehry RTOS- I want to make use Zephyr RTC to get time stamp in date time format. 
 At the beggining i initialized a RTC device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Dec 2024 11:43:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104533/nrf52832-rtc-using-to-get-time-stamp" /><item><title>RE: NRF52832 RTC using to get time stamp</title><link>https://devzone.nordicsemi.com/thread/516564?ContentTypeID=1</link><pubDate>Tue, 31 Dec 2024 11:43:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c07826c-eb14-41a6-9736-935af9988ee6</guid><dc:creator>lara</dc:creator><description>&lt;p&gt;hi luca..iam facing the same issue..&lt;/p&gt;
&lt;p&gt;RTC time set successfully&lt;br /&gt;Current Time: 30804-536872553-23191 536872552:536872304:255&lt;br /&gt;Raw RTC time: sec=255, min=536872304, hour=536872552, mday=23191, mon=536872552, year=28904&lt;/p&gt;
&lt;p&gt;can you tell me how to solve this&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 RTC using to get time stamp</title><link>https://devzone.nordicsemi.com/thread/496069?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 16:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:559a3c71-23f8-484e-8dee-fc239aac2225</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;See&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;rtc_set_time:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/drivers/rtc/rtc_shell.c#L183"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/drivers/rtc/rtc_shell.c#L183&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;rtc_get_time:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/drivers/rtc/rtc_shell.c#L203"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v3.6.99-ncs2/drivers/rtc/rtc_shell.c#L203&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 RTC using to get time stamp</title><link>https://devzone.nordicsemi.com/thread/495870?ContentTypeID=1</link><pubDate>Sat, 27 Jul 2024 06:31:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e963af1-c489-4896-a8a5-30e8277a9cd4</guid><dc:creator>bsherman</dc:creator><description>&lt;p&gt;Hello. I seem to be running into this same issue. I wasn&amp;#39;t able to resolve the issue from the documentation. Could you provide an example of correct usage of&amp;nbsp;rtc_set_time/rtc_get_time?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52832 RTC using to get time stamp</title><link>https://devzone.nordicsemi.com/thread/449917?ContentTypeID=1</link><pubDate>Wed, 11 Oct 2023 18:56:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e20ed754-6da4-432c-92a9-3195399a0b59</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It seems the offset for&amp;nbsp;tm_year and&amp;nbsp;tm_mon are not correct. See&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/e2ad826809bbcdeaa04f1edc2a57f21a0b2151ff/include/zephyr/drivers/rtc.h#L59-L69"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/e2ad826809bbcdeaa04f1edc2a57f21a0b2151ff/include/zephyr/drivers/rtc.h#L59-L69&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>