title: Compare current time with given time
body: <p>So...I'm trying to compare the current date with a date initialized by me. I have this code but it always enter into the if comparation, even though the dates are different. Any help, please?</p>
  
  <pre><code>   int main ()
  {
    time_t rawtime;
    struct tm  data;
  
    data.tm_year=2014-1900;
    data.tm_mon=12-1;
    data.tm_mday=27;
    data.tm_hour=17;
    data.tm_min=4;
    data.tm_sec=0;
  
    time ( &amp;rawtime );
  
    if(mktime(&amp;data) == time(&amp;rawtime))
  
     {
      printf("Same date\n");
    }
  
    return 0;
  }
  </code></pre>