// Date formatter for German dates (in German) // a-umlaut in Maerz is written as "ae" for compatibility reasons // use date format deL1 or deHTML for correct umlaut // 8/1998 jk #include "config.h" #ifdef TM_IN_SYS_TIME #include #else #include #endif #ifdef HAVE_STRING_H #include #else /* do not have sting.h */ #include #endif /* HAVE_STRING_H */ #define __EXCLUDE_READER_CLASSES #include "lib.h" char *de_date(time_t when) { static const char *months[]= { "Januar", "Februar", "Maerz", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", }; struct tm *tim; char date_buf[200]; tim=localtime(&when); sprintf(date_buf, "%d. %s %d", tim->tm_mday, months[tim->tm_mon], 1900+tim->tm_year); return strdup(date_buf); }