<?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>Missing functions from time.h</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115443/missing-functions-from-time-h</link><description>I&amp;#39;m getting error: 
 
 When trying to use any of the time related functions: localtime,strftime etc. I have the 
 &amp;quot;#include &amp;lt;time.h&amp;gt;&amp;quot; in the file, but armgcc is acting like the functions were unavailable. 
 I suspect I&amp;#39;m missing something obvious in the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Oct 2024 20:11:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115443/missing-functions-from-time-h" /><item><title>RE: Missing functions from time.h</title><link>https://devzone.nordicsemi.com/thread/505965?ContentTypeID=1</link><pubDate>Fri, 11 Oct 2024 20:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:749d0389-1ff7-4feb-815c-2658ef5d0dd9</guid><dc:creator>McRancor</dc:creator><description>&lt;p&gt;Problem solved. It was my mistake, but I will leave it there for other people. At the beginning I named my file time.c/time.h but I quickly realized it might conflict with the generic time.h and changed the name. However, in the heather file I left the old name in the heather guard:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifndef _TIMECLOCK_H_
#define _TIMECLOCK_H_
#include &amp;lt;stdint.h&amp;gt;
#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;time.h&amp;gt;
...&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And that was causing the &amp;quot;real&amp;quot; time.h to be omitted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>