Tarefa12/main.cpp
time_t convert_to_timestamp(int day, int month, int year, int hour, int minute, int seconde){
  tm time;
  time.tm_year = year - 1900;
  time.tm_mon = month - 1;
  time.tm_mday = day;
  time.tm_hour = hour;
  time.tm_min = minute;
  time.tm_sec = seconde;
  return timegm(&time);
}
/**
 * \fn time_t convert_to_timestamp(int day, int month, int year, int hour, int minute, int seconde)
 * \brief Convert a date to timestamp
 * Parameter's names are self-sufficient. You shouldn't modify this part of the code unless you know what you are doing.
 * \return a timestamp (epoch) corresponding to the given parameters.
 */
\fn time_t convert_to_timestamp(int day, int month, int year, int hour, int minute, int seconde)
\brief Convert a date to timestamp
Parameter's names are self-sufficient. You shouldn't modify this part of the code unless you know what you are doing.
\return a timestamp (epoch) corresponding to the given parameters.
\ fn time_t convert_to_timestamp ( int day int month int year int hour int minute int seconde ) \ brief Convert a date to timestamp Parameter ' s names are self - sufficient . You shouldn ' t modify this part of the code unless you know what you are doing . \ return a timestamp ( epoch ) corresponding to the given parameters .
time_t convert_to_timestamp(int day, int month, int year, int hour, int minute, int seconde){
  tm time;
  time.tm_year = year - 1900;
  time.tm_mon = month - 1;
  time.tm_mday = day;
  time.tm_hour = hour;
  time.tm_min = minute;
  time.tm_sec = seconde;
  return timegm(&time);
}
time_t convert_to_timestamp ( int day , int month , int year , int hour , int minute , int seconde ) { tm time ; time . tm_year = year - 1900 ; time . tm_mon = month - 1 ; time . tm_mday = day ; time . tm_hour = hour ; time . tm_min = minute ; time . tm_sec = seconde ; return timegm ( & time ) ; }
\fn time_t convert_to_timestamp(int day, int month, int year, int hour, int minute, int seconde)
 \brief Convert a date to timestamp
 Parameter's names are self-sufficient.
\ fn time_t convert_to_timestamp ( int day int month int year int hour int minute int seconde ) \ brief Convert a date to timestamp Parameter ' s names are self - sufficient .