title: Get days between a date and now using the time() function
body: <p>I want to get a number of days from a certain date to current date.
  Here is my current code that gets the days from 1/1/1970.</p>
  
  <pre><code>int days_since_my_birth(int day, int month, int year) {
  
      time_t sec;
      sec = time(NULL);
  
      printf("Number of days since birth is %ld \n", sec / 86400);
  
      return d;
  }
  </code></pre>
  
  <p>Can I use the <code>time()</code> function to get the number of seconds from a date I entered?</p>