<?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>Can we set current date and time on NRF51422? Is there any example?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69343/can-we-set-current-date-and-time-on-nrf51422-is-there-any-example</link><description>I want to set the Device&amp;#39;s current date and time as I have to check time after certain interval. I don&amp;#39;t want to use RTC where we have to look for ticks. 
 
 My questions are 
 
 Is it possible to set date and time on NRF51422? 
 If Yes, do you know any</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Dec 2020 13:44:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69343/can-we-set-current-date-and-time-on-nrf51422-is-there-any-example" /><item><title>RE: Can we set current date and time on NRF51422? Is there any example?</title><link>https://devzone.nordicsemi.com/thread/285097?ContentTypeID=1</link><pubDate>Tue, 15 Dec 2020 13:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d58a0b23-13c3-4907-9e2f-baecae70c102</guid><dc:creator>Kainat Altaf</dc:creator><description>&lt;p&gt;Hey, Thanks. This perfectly solves my problem. The above mentioned code is working on nrf51.&lt;/p&gt;
[quote userid="2116" url="~/f/nordic-q-a/69343/can-we-set-current-date-and-time-on-nrf51422-is-there-any-example/284456#284456"]Can you elaborate a bit more?[/quote]
&lt;p&gt;I am just a beginner. I thought there are may&amp;nbsp;be some other implementations which does not require RTC, but found out it&amp;#39;s the only way without using any external timer module.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can we set current date and time on NRF51422? Is there any example?</title><link>https://devzone.nordicsemi.com/thread/284456?ContentTypeID=1</link><pubDate>Fri, 11 Dec 2020 09:31:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f89f8f4-c5da-4a37-80d7-05e6058a40cf</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I wrote a simple example a while back to integrate the time.h library in the SDK, so you could keep track of time and date in the nRF device, but unfortunately it does use the RTC, and I only have project files included for the nRF52 devices:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;https://github.com/NordicPlayground/nrf5-calendar-example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It should be possible to run on the nRF51 also, if you just include the nrf_calendard.c/h files without using the full projects.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
[quote user=""]I don&amp;#39;t&amp;nbsp;want to use&amp;nbsp;RTC where we have to look for ticks.[/quote]
&lt;p&gt;Can you elaborate a bit more?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is no good way to keep track of time in the nRF devices without using the RTC, unless you use an external RTC chip of some kind, or use the TIMER module instead (which will greatly increase sleep currents).&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>