1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include <stdio.h> #include "dk4time08.h" int main(int argc, char *argv[]) { char buffer[64]; int res; res = dk4time_to_text_c8( buffer, sizeof(buffer), DK4_TIMEFORMAT_DATE_GERMAN, 2015, 1, 25, 14, 10, 35, NULL ); if (0 != res) { fputs(buffer, stdout); fputc('\n', stdout); } return 0; }