title: Get current date and time in seconds
body: <pre><code>    time_t rawtime;
  struct tm *mytm;
  time_t result;
  
  time(&amp;rawtime);
  
  mytm=localtime(&amp;rawtime);
  mytm-&gt;tm_mon=month-1;
  mytm-&gt;tm_mday=day;
  mytm-&gt;tm_year=year-1900;
  
  mytm-&gt;tm_sec=0;
  mytm-&gt;tm_min=0;
  mytm-&gt;tm_hour=0;
  
  result = mktime(mytm);
  </code></pre>
  
  <p>Above code snippet,I'm expecting result to display the no.of seconds lapsed since 1970,jan-1st for the given date. DD/MM/YYYY stored in day ,month,year
  But i'm getting compile error</p>
  
  <p><code>error: dereferencing pointer to incomplete type
  </code></p>