Changeset 5b9847d


Ignore:
Timestamp:
2007-12-16T02:55:56Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
6b43dd4
Parents:
f9c3e7b
Message:

fixed age output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    rf9c3e7b r5b9847d  
    379379                                                        strftime(ib, 256, "%B %d, %Y", &tm);
    380380                                                        g_string_append_printf(st, "Birthday: %s\n", ib);
    381                                                         g_string_append_printf(st, "Age:\n");
     381
     382                                                        strftime(ib, 256, "%Y", &tm);
     383                                                        int year = atoi(ib);
     384                                                        time_t t = time(NULL);
     385                                                        struct tm *lt = localtime(&t);
     386                                                        g_string_append_printf(st, "Age: %d\n", lt->tm_year+1900-year);
    382387                                                }
    383388                                                g_free(sd->info_birthday);
Note: See TracChangeset for help on using the changeset viewer.