Mercurial > pidgin
comparison src/util.c @ 13033:69b3d5cbd2b1
[gaim-migrate @ 15389]
Kill gaim_date() and gaim_date_full(). The former isn't used and the latter is used only twice. This makes the buddy pounce pop-ups and debug log headers contain localized dates, fixing part of SF Bug #1325915. Thanks to Bleeter for discovering that gaim_date() isn't used.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 25 Jan 2006 02:58:54 +0000 |
parents | 248b8b39c671 |
children | b553326bc468 |
comparison
equal
deleted
inserted
replaced
13032:4016a35bdd4d | 13033:69b3d5cbd2b1 |
---|---|
473 | 473 |
474 | 474 |
475 /************************************************************************** | 475 /************************************************************************** |
476 * Date/Time Functions | 476 * Date/Time Functions |
477 **************************************************************************/ | 477 **************************************************************************/ |
478 const char * | |
479 gaim_date(void) | |
480 { | |
481 static char date[80]; | |
482 time_t tme; | |
483 | |
484 time(&tme); | |
485 strftime(date, sizeof(date), "%H:%M:%S", localtime(&tme)); | |
486 | |
487 return date; | |
488 } | |
489 | |
490 const char * | |
491 gaim_date_full(void) | |
492 { | |
493 char *date; | |
494 time_t tme; | |
495 | |
496 time(&tme); | |
497 date = ctime(&tme); | |
498 date[strlen(date) - 1] = '\0'; | |
499 | |
500 return date; | |
501 } | |
502 | 478 |
503 time_t | 479 time_t |
504 gaim_time_build(int year, int month, int day, int hour, int min, int sec) | 480 gaim_time_build(int year, int month, int day, int hour, int min, int sec) |
505 { | 481 { |
506 struct tm tm; | 482 struct tm tm; |