title: Difference between dates in seconds
body: <p>I was wondering if there is any way to get the difference, in seconds, of 2 dates introduced by the user and saved in <code>int</code>. For example: </p>
  
  <pre><code>int date1d,date1m,date1y,date2m,date2m,date2y;
  
  printf("First date(dd/mm/yyyy):");
  scanf("%2d/%2d/%4d", &amp;date1d, &amp;date1m, &amp;date1y);
  
  printf("second date(dd/mm/yyyy):");
  scanf("%2d/%2d/%4d", &amp;date2d, &amp;date2m, &amp;date2y);
  </code></pre>
  
  <p>I know that <code>time.h</code> has the function <code>difftime()</code> that does that, but in onder to use it I need to have 2 time_t structs. Can I get time_t structs with only those 3 ints?</p>
  
  <p><a href="https://www.tutorialspoint.com/c_standard_library/c_function_difftime.htm" rel="nofollow noreferrer">here's some details about the funtion</a></p>