I'm too hung over, to even explain, so here is a code example.
Code:
#include <stdio.h>
#include <time.h>
int main()
{
struct tm *tm_set;
time_t tim, t;
tim = time(&t);
tm_set = localtime(&tim);
printf("HHMM: %.2d%.2d\n", tm_set->tm_hour, tm_set->tm_min);
printf("DDMMYY: %.2d%.2d%.2d\n", tm_set->tm_mday, tm_set->tm_mon,
(tm_set->tm_year < 100)? tm_set->tm_year: (tm_set->tm_year -100));
return 0;
}