<?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>question of saving and calculating date and time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1340/question-of-saving-and-calculating-date-and-time</link><description>I am developing using a nrf51822. I want to save and calculating year,month,date,hour,minute.
so.Is it possible to use the time.h of c statndard lib?
If it is impossible,do i have to calculate the date using a timer tick?
or If you have another idea</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2014 08:20:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1340/question-of-saving-and-calculating-date-and-time" /><item><title>RE: question of saving and calculating date and time</title><link>https://devzone.nordicsemi.com/thread/6114?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2014 08:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d134d2c-7906-4110-8359-11448e9e35cf</guid><dc:creator>hjjeon</dc:creator><description>&lt;p&gt;thank you for your consideration&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: question of saving and calculating date and time</title><link>https://devzone.nordicsemi.com/thread/6113?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2014 12:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d708c9-36dd-4951-aab6-c4207ee5315a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi hjjeon,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you can use time.h library from C standard lib. There is no way the MCU can get the current_time. You would need to use RTC to count the time. You can set the tick of RTC to, for example, one second. And then calculate the current time base on the RTC counter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>