comparison src/util.c @ 1805:caa605e70917

[gaim-migrate @ 1815] i have that sting song, the one they play in the mercedes commercial, stuck in my head. what the hell are the words to that song. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 05 May 2001 10:36:08 +0000
parents ee578ccaa5f1
children f15d449b3167
comparison
equal deleted inserted replaced
1804:c7b288ea3892 1805:caa605e70917
1501 fprintf(fd, "%s<BR>\n", html); 1501 fprintf(fd, "%s<BR>\n", html);
1502 } 1502 }
1503 1503
1504 fclose(fd); 1504 fclose(fd);
1505 } 1505 }
1506
1507 time_t get_time(int year, int month, int day, int hour, int min, int sec)
1508 {
1509 struct tm tm;
1510
1511 tm.tm_year = year - 1900;
1512 tm.tm_mon = month - 1;
1513 tm.tm_mday = day;
1514 tm.tm_hour = hour;
1515 tm.tm_min = min;
1516 tm.tm_sec = sec >= 0 ? sec : time(NULL) % 60;
1517 return mktime(&tm);
1518 }